diff --git a/lib/ua-device.js b/lib/ua-device.js index f72fe0c..6ece4d3 100755 --- a/lib/ua-device.js +++ b/lib/ua-device.js @@ -1,7 +1,7 @@ var UA = require('./useragent-base'); module.exports = function (ua) { - var uaData = new UA(ua); var match; + var uaData = new UA(ua); var tmpMatch; // handle mobile device if (uaData.device.type === 'mobile' || uaData.device.type === 'tablet') { diff --git a/lib/useragent-base.js b/lib/useragent-base.js index 2c1ca65..801d7b5 100755 --- a/lib/useragent-base.js +++ b/lib/useragent-base.js @@ -2557,7 +2557,7 @@ module.exports = (function () { }, detect: function (ua) { - + var match; /**************************************************** * Unix */ @@ -5841,4 +5841,4 @@ module.exports = (function () { return Detected; -})(); \ No newline at end of file +})();