summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-05-06 17:44:10 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-05-06 17:44:10 +0200
commitd51dae922a4b4cfb681fe2a28c9649a84644c993 (patch)
treea467d933a7068d8502421814a65da8251f8a62d9 /core/js/js.js
parent16d696e94d23a2434a55c83c4b1d704475959a9f (diff)
downloadnextcloud-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.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)
});
}