Merge pull request #15397 from nextcloud/fix/cssvars/edge-support

Set Edge < 16 as incompatible with css vars
This commit is contained in:
Roeland Jago Douma 2019-05-07 16:44:31 +02:00 committed by GitHub
commit 0e9d019a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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)
});
}