diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-05-06 17:44:10 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-05-06 17:44:10 +0200 |
commit | d51dae922a4b4cfb681fe2a28c9649a84644c993 (patch) | |
tree | a467d933a7068d8502421814a65da8251f8a62d9 /core/js/js.js | |
parent | 16d696e94d23a2434a55c83c4b1d704475959a9f (diff) | |
download | nextcloud-server-d51dae922a4b4cfb681fe2a28c9649a84644c993.tar.gz nextcloud-server-d51dae922a4b4cfb681fe2a28c9649a84644c993.zip |
Set Edge < 16 as incompatible with css vars
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 5 |
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) }); } |