summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-05-07 16:44:31 +0200
committerGitHub <noreply@github.com>2019-05-07 16:44:31 +0200
commit0e9d019a1477b8b380f55be0784be65627e84946 (patch)
treec5caf486f8e71b74456f3fc6ced2634d7c4eae00 /core/js/js.js
parentee6011d2d5093e0f9a6bb2540726a286364d6896 (diff)
parentd51dae922a4b4cfb681fe2a28c9649a84644c993 (diff)
downloadnextcloud-server-0e9d019a1477b8b380f55be0784be65627e84946.tar.gz
nextcloud-server-0e9d019a1477b8b380f55be0784be65627e84946.zip
Merge pull request #15397 from nextcloud/fix/cssvars/edge-support
Set Edge < 16 as incompatible with css vars
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 b255ff63dfc..556de157e67 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -708,7 +708,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)
});
}