Use isEdge for MSEdge detection

This commit is contained in:
Davide P. Cervone 2015-09-14 06:57:01 -04:00
parent 6a7fe67146
commit 00af8c161e

View File

@ -80,7 +80,7 @@ MathJax.Hub.Register.StartupHook("MathML Jax Ready",function () {
*/
var BROWSER = MathJax.Hub.Browser;
var exslt = '';
if (!!navigator.userAgent.match(/ Edge\//) || BROWSER.isMSIE) {
if (BROWSER.isEdge || BROWSER.isMSIE) {
exslt = 'urn:schemas-microsoft-com:xslt'
} else {
exslt = 'http://exslt.org/common';