mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-15 22:52:16 +03:00
Added Zepto support (aka jQuery)
Added Zepto support (aka jQuery) http://zeptojs.com/
This commit is contained in:
@@ -657,9 +657,9 @@
|
||||
return UAParser;
|
||||
});
|
||||
}
|
||||
// jQuery specific (optional)
|
||||
if (typeof(window.jQuery) !== UNDEF_TYPE) {
|
||||
var $ = window.jQuery;
|
||||
// jQuery/Zepto specific (optional)
|
||||
var $ = window.jQuery || window.Zepto;
|
||||
if (typeof($) !== UNDEF_TYPE) {
|
||||
var parser = new UAParser();
|
||||
$.ua = parser.getResult();
|
||||
$.ua.get = function() {
|
||||
|
||||
Reference in New Issue
Block a user