Fix : for UIE11, regexp must also consider Trident string
This commit is contained in:
parent
7a8a799c26
commit
8ba0cd91be
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ exports.isLinux = (os == "linux");
|
|||
// Windows Store JavaScript apps (aka Metro apps written in HTML5 and JavaScript) do not use the "Microsoft Internet Explorer" string in their user agent, but "MSAppHost" instead.
|
||||
exports.isIE =
|
||||
(navigator.appName == "Microsoft Internet Explorer" || navigator.appName.indexOf("MSAppHost") >= 0)
|
||||
&& parseFloat(navigator.userAgent.match(/(?:rv:|MSIE )([0-9]+[\.0-9]+)/)[1]);
|
||||
&& parseFloat(navigator.userAgent.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:|MSIE )([0-9]+[\.0-9]+)/)[1]);
|
||||
|
||||
exports.isOldIE = exports.isIE && exports.isIE < 9;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue