Skip to content

Commit 64d3a51

Browse files
authored
Merge pull request #15417 from nextcloud/backport/15397/stable16
[stable16] Set Edge < 16 as incompatible with css vars
2 parents 1a58d8c + 3a9738e commit 64d3a51

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/js/js.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,10 @@ function initCore() {
915915
// css variables fallback for IE
916916
if (msie > 0 || trident > 0) {
917917
cssVars({
918-
watch: true
918+
watch: true,
919+
// set edge < 16 as incompatible
920+
onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent)
921+
&& parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16)
919922
});
920923
}
921924

0 commit comments

Comments
 (0)