Fix system theme detection
This commit is contained in:
parent
478464570e
commit
fcbbf8d312
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ function switchTheme(styleElem, mainStyleElem, newTheme, saveTheme) {
|
|||
}
|
||||
|
||||
function getSystemValue() {
|
||||
return getComputedStyle(document.documentElement).getPropertyValue('content');
|
||||
var property = getComputedStyle(document.documentElement).getPropertyValue('content');
|
||||
return property.replace(/\"\'/g, "");
|
||||
}
|
||||
|
||||
switchTheme(currentTheme, mainTheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue