Put pre-Chromium Edge in the same category as IE (#3220)

* Put pre-Chromium Edge in the same category as IE, closes #3219

* code review
This commit is contained in:
Carson Sievert
2020-12-18 12:08:50 -06:00
committed by GitHub
parent eef44295db
commit f635f98ccb
5 changed files with 7 additions and 7 deletions

View File

@@ -378,11 +378,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
if (/\bQt\/5/.test(window.navigator.userAgent) && /Linux/.test(window.navigator.userAgent)) {
$(document.documentElement).addClass('qt5');
} // Detect IE information
} // Detect IE and older (pre-Chromium) Edge
var ua = window.navigator.userAgent;
var isIE = /MSIE|Trident/.test(ua);
var isIE = /MSIE|Trident|Edge/.test(ua);
function getIEVersion() {
var msie = ua.indexOf('MSIE ');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,9 +13,9 @@ var browser = (function() {
$(document.documentElement).addClass('qt5');
}
// Detect IE information
// Detect IE and older (pre-Chromium) Edge
var ua = window.navigator.userAgent;
var isIE = /MSIE|Trident/.test(ua);
var isIE = /MSIE|Trident|Edge/.test(ua);
function getIEVersion() {
var msie = ua.indexOf('MSIE ');