Skip to content

Commit

Permalink
Update src/librustdoc/html/static/js/storage.js
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
  • Loading branch information
notriddle and GuillaumeGomez committed Mar 8, 2023
1 parent d4dce3e commit 255fdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function switchTheme(newThemeName, saveTheme) {
}

if (!window.currentTheme) {
document.write("<link rel=\"stylesheet\" id=\"themeStyle\" href=\"" + newHref + "\">");
document.write(`<link rel="stylesheet" id="themeStyle" href="${newHref}">`);
window.currentTheme = document.getElementById("themeStyle");
} else if (newHref !== window.currentTheme.href) {
window.currentTheme.href = newHref;
Expand Down

0 comments on commit 255fdb3

Please sign in to comment.