Skip to content

Commit

Permalink
Auto merge of rust-lang#64096 - GuillaumeGomez:theme-regex-fix, r=Mar…
Browse files Browse the repository at this point in the history
…k-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
bors committed Sep 8, 2019
2 parents 4a8ccdb + 991f436 commit 5036237
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 5036237

Please sign in to comment.