mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Added Zepto support (aka jQuery)
Added Zepto support (aka jQuery) http://zeptojs.com/
This commit is contained in:
parent
b60ed8c0c6
commit
86387a2a39
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user