Windows and Mobile tests should be case insensitive

This commit is contained in:
Peter 'Pita' Martischka 2013-02-10 22:10:25 +00:00
parent 70c0591d35
commit 25fd3c5901

View file

@ -39,8 +39,8 @@
} }
//custom extensions, the original jquery didn't have these //custom extensions, the original jquery didn't have these
browser.windows = /windows/.test(userAgent); browser.windows = /windows/i.test(userAgent);
browser.mobile = /mobile/.test(userAgent) || /android/.test(userAgent); browser.mobile = /mobile/i.test(userAgent) || /android/i.test(userAgent);
if(typeof exports !== 'undefined'){ if(typeof exports !== 'undefined'){
exports.browser = browser; exports.browser = browser;