Skip to content

Commit

Permalink
Fix regex replacement in theme detection
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 2, 2019
1 parent fdaf594 commit 991f436
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 991f436

Please sign in to comment.