]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set Edge < 16 as incompatible with css vars 15397/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Mon, 6 May 2019 15:44:10 +0000 (17:44 +0200)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Mon, 6 May 2019 15:44:10 +0000 (17:44 +0200)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
core/js/js.js

index 311bcc7a77094a45235ab89d8520299b2525cc6a..bfe11d267ccea6de9a59f35eb0ba5adfd0086d7f 100644 (file)
@@ -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)
                });
        }