Fix regex replacement in theme detection
This commit is contained in:
parent
fdaf594bab
commit
991f436633
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue