Rollup merge of #63847 - GuillaumeGomez:system-theme-detection, r=kinnison
[rustdoc] Fix system theme detection Fixes #63830 The problem is that it returns the property "entirely" (so with the quotes in our case). Removing them fixes the issue. cc @fenhl r? @kinnison
This commit is contained in:
commit
5f07ff7087
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