Set Edge < 16 as incompatible with css vars
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
16d696e94d
commit
d51dae922a
|
@ -747,7 +747,10 @@ function initCore() {
|
||||||
// css variables fallback for IE
|
// css variables fallback for IE
|
||||||
if (msie > 0 || trident > 0) {
|
if (msie > 0 || trident > 0) {
|
||||||
cssVars({
|
cssVars({
|
||||||
watch: true
|
watch: true,
|
||||||
|
// set edge < 16 as incompatible
|
||||||
|
onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent)
|
||||||
|
&& parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue