www

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

commit c2f64e3470e3c35c8ea7f57d51886ba446a10100
parent 06235f4cb56ab1fa4177eef03b7a2de83640e3c8
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 20 Mar 2013 17:04:14 -0400

Merge remote-tracking branch 'fred/sniffing' into develop

Resolves issue #377.

Diffstat:
Munpacked/MathJax.js | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -1,3 +1,5 @@ +/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax.js @@ -2341,8 +2343,8 @@ MathJax.Hub.Startup = { isMac: (navigator.platform.substr(0,3) === "Mac"), isPC: (navigator.platform.substr(0,3) === "Win"), isMSIE: (window.ActiveXObject != null && window.clipboardData != null), - isFirefox: ((window.netscape != null || window.mozPaintCount != null) && - document.ATTRIBUTE_NODE != null && !window.opera), + isFirefox: (navigator.userAgent.match(/Gecko/) != null && + navigator.userAgent.match(/KHTML/) == null), isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null && (!window.chrome || window.chrome.loadTimes == null)), isChrome: (window.chrome != null && window.chrome.loadTimes != null), @@ -2420,7 +2422,8 @@ MathJax.Hub.Startup = { } } browser.isMobile = (navigator.appVersion.match(/Android/i) != null || - navigator.userAgent.match(/ Fennec\//) != null); + navigator.userAgent.match(/ Fennec\//) != null || + navigator.userAgent.match(/Mobile/) != null); }, Opera: function (browser) {browser.version = opera.version()}, MSIE: function (browser) {