Update MathJax.js: add UA detection for MS Edge
Cf. https://msdn.microsoft.com/en-us/library/hh869301.aspx
This commit is contained in:
parent
593a393bfc
commit
98a8deecf6
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue
Block a user