summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 311bcc7a770..bfe11d267cc 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -747,7 +747,10 @@ function initCore() {
// css variables fallback for IE
if (msie > 0 || trident > 0) {
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)
});
}