mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Merge pull request #56 from duzun/patch-1
Added Zepto support (aka jQuery)
This commit is contained in:
commit
2b96f9b297
@ -657,9 +657,9 @@
|
|||||||
return UAParser;
|
return UAParser;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// jQuery specific (optional)
|
// jQuery/Zepto specific (optional)
|
||||||
if (typeof(window.jQuery) !== UNDEF_TYPE) {
|
var $ = window.jQuery || window.Zepto;
|
||||||
var $ = window.jQuery;
|
if (typeof($) !== UNDEF_TYPE) {
|
||||||
var parser = new UAParser();
|
var parser = new UAParser();
|
||||||
$.ua = parser.getResult();
|
$.ua = parser.getResult();
|
||||||
$.ua.get = function() {
|
$.ua.get = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user