diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-05-07 16:44:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 16:44:31 +0200 |
commit | 0e9d019a1477b8b380f55be0784be65627e84946 (patch) | |
tree | c5caf486f8e71b74456f3fc6ced2634d7c4eae00 /core/js/js.js | |
parent | ee6011d2d5093e0f9a6bb2540726a286364d6896 (diff) | |
parent | d51dae922a4b4cfb681fe2a28c9649a84644c993 (diff) | |
download | nextcloud-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.js | 5 |
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) }); } |