mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Windows and Mobile tests should be case insensitive
This commit is contained in:
parent
70c0591d35
commit
25fd3c5901
1 changed files with 2 additions and 2 deletions
4
src/static/js/jquery_browser.js
vendored
4
src/static/js/jquery_browser.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue