Auto merge of #64096 - GuillaumeGomez:theme-regex-fix, r=Mark-Simulacrum

Fix regex replacement in theme detection

Fixes #64061.

This is sadly a lot of bad luck: after making the changes and re-build the docs, I just forgot to force reload the page. Hence having the old (working) version with two replacements instead of the failing regex. Sorry again about that...

cc @fenhl
r? @Mark-Simulacrum
This commit is contained in:
bors 2019-09-08 06:06:39 +00:00
commit 50362372d6

View File

@ -119,7 +119,7 @@ function switchTheme(styleElem, mainStyleElem, newTheme, saveTheme) {
function getSystemValue() {
var property = getComputedStyle(document.documentElement).getPropertyValue('content');
return property.replace(/\"\'/g, "");
return property.replace(/[\"\']/g, "");
}
switchTheme(currentTheme, mainTheme,