summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2013-02-10 22:10:25 +0000
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2013-02-10 22:10:25 +0000
commit25fd3c59019d8f6fe5fdb7d8bea90644a805b813 (patch)
tree0b59ce204cba27f772b97c43d84a07466798e0c8
parent70c0591d354f95be3f450e654d88b27fd5067596 (diff)
downloadetherpad-lite-25fd3c59019d8f6fe5fdb7d8bea90644a805b813.zip
Windows and Mobile tests should be case insensitive
-rw-r--r--src/static/js/jquery_browser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/jquery_browser.js b/src/static/js/jquery_browser.js
index 6a441486..0d61e0dd 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;