www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6fd9c45c14c24c59afc62965343b1a2076c0528e
parent 15c9159cb23f3bed33eaf430e85dd32962987ff1
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed,  8 Jul 2015 17:20:28 -0400

Add more detail to browser detection for Safari (since Windows Mobile thinks its Safari).  Resolves issue #1085.

Diffstat:
Munpacked/MathJax.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -3075,8 +3075,8 @@ MathJax.Hub.Startup = { isMac: (navigator.platform.substr(0,3) === "Mac"), isPC: (navigator.platform.substr(0,3) === "Win"), isMSIE: ("ActiveXObject" in window && "clipboardData" in window), - isFirefox: (AGENT.match(/Gecko\//) && !AGENT.match(/like Gecko/)), - isSafari: (AGENT.match(/ (Apple)?WebKit\//) != null && + isFirefox: (!!AGENT.match(/Gecko\//) && !AGENT.match(/like Gecko/)), + isSafari: (!!AGENT.match(/ (Apple)?WebKit\//) && !AGENT.match(/ like iPhone /) && (!window.chrome || window.chrome.loadTimes == null)), isChrome: (window.chrome != null && window.chrome.loadTimes != null), isOpera: (window.opera != null && window.opera.version != null),