diff --git a/src/ua-parser.js b/src/ua-parser.js index 15d1c98..7e0835a 100755 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -886,7 +886,7 @@ // jQuery always exports to global scope, unless jQuery.noConflict(true) is used, // and we should catch that. var $ = window && (window.jQuery || window.Zepto); - if (typeof $ !== UNDEF_TYPE && !$.ua) { + if ($ && !$.ua) { var parser = new UAParser(); $.ua = parser.getResult(); $.ua.get = function () {