From d51dae922a4b4cfb681fe2a28c9649a84644c993 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 6 May 2019 17:44:10 +0200 Subject: [PATCH] Set Edge < 16 as incompatible with css vars MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/js.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) }); } -- 2.39.5