Skip to content

Commit

Permalink
Rollup merge of rust-lang#64096 - GuillaumeGomez:theme-regex-fix, r=M…
Browse files Browse the repository at this point in the history
…ark-Simulacrum

Fix regex replacement in theme detection

Fixes rust-lang#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
  • Loading branch information
Mark-Simulacrum authored Sep 6, 2019
2 parents 8dab014 + 991f436 commit 5f1acb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5f1acb7

Please sign in to comment.