From 25fd3c59019d8f6fe5fdb7d8bea90644a805b813 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 10 Feb 2013 22:10:25 +0000 Subject: [PATCH] Windows and Mobile tests should be case insensitive --- src/static/js/jquery_browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/jquery_browser.js b/src/static/js/jquery_browser.js index 6a441486e..0d61e0ddd 100644 --- a/src/static/js/jquery_browser.js +++ b/src/static/js/jquery_browser.js @@ -39,8 +39,8 @@ } //custom extensions, the original jquery didn't have these - browser.windows = /windows/.test(userAgent); - browser.mobile = /mobile/.test(userAgent) || /android/.test(userAgent); + browser.windows = /windows/i.test(userAgent); + browser.mobile = /mobile/i.test(userAgent) || /android/i.test(userAgent); if(typeof exports !== 'undefined'){ exports.browser = browser;