www

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

commit 98a8deecf6228b8fb7c5ed4c0aba402756bc6a3d
parent 593a393bfc6d551c0e659c2d230d995136c49210
Author: Peter Krautzberger <p.krautzberger@gmail.com>
Date:   Wed,  9 Sep 2015 11:40:23 +0200

Update MathJax.js: add UA detection for MS Edge

Cf. https://msdn.microsoft.com/en-us/library/hh869301.aspx
Diffstat:
Munpacked/MathJax.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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