[stable14] Set Edge < 16 as incompatible with css vars

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-05-07 18:31:22 +02:00
parent 021fcc5011
commit 5fc0559fb7
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 2 additions and 2 deletions

View File

@ -1363,11 +1363,11 @@ function initCore() {
// css variables fallback for IE // css variables fallback for IE
if (msie > 0 || trident > 0 || edge > 0) { if (msie > 0 || trident > 0 || edge > 0) {
console.debug('Legacy browser detected, applying css vars polyfill') console.info('Legacy browser detected, applying css vars polyfill')
cssVars({ cssVars({
// set edge < 16 as incompatible // set edge < 16 as incompatible
onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent) onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent)
&& parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16) && parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16)
}); });
} }