Skip to content

Commit 0e9d019

Browse files
authored
Merge pull request #15397 from nextcloud/fix/cssvars/edge-support
Set Edge < 16 as incompatible with css vars
2 parents ee6011d + d51dae9 commit 0e9d019

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/js/js.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,10 @@ function initCore() {
708708
// css variables fallback for IE
709709
if (msie > 0 || trident > 0) {
710710
cssVars({
711-
watch: true
711+
watch: true,
712+
// set edge < 16 as incompatible
713+
onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent)
714+
&& parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16)
712715
});
713716
}
714717

0 commit comments

Comments
 (0)