Improve browser detection so that non-chrome WebKit will be Safari (was not working in default browser for Android 3.0)
This commit is contained in:
parent
fd0e446a39
commit
14507fb9ff
File diff suppressed because one or more lines are too long
|
@ -2262,7 +2262,8 @@ MathJax.Hub.Startup = {
|
||||||
isPC: (navigator.platform.substr(0,3) === "Win"),
|
isPC: (navigator.platform.substr(0,3) === "Win"),
|
||||||
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
|
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
|
||||||
isFirefox: (window.netscape != null && document.ATTRIBUTE_NODE != null && !window.opera),
|
isFirefox: (window.netscape != null && document.ATTRIBUTE_NODE != null && !window.opera),
|
||||||
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null && !window.chrome),
|
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null &&
|
||||||
|
(!window.chrome || window.chrome.loadTimes == null)),
|
||||||
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
|
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
|
||||||
isOpera: (window.opera != null && window.opera.version != null),
|
isOpera: (window.opera != null && window.opera.version != null),
|
||||||
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),
|
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user