Skip to content

Commit 255fdb3

Browse files
Update src/librustdoc/html/static/js/storage.js
Co-authored-by: Guillaume Gomez <[email protected]>
1 parent d4dce3e commit 255fdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function switchTheme(newThemeName, saveTheme) {
150150
}
151151

152152
if (!window.currentTheme) {
153-
document.write("<link rel=\"stylesheet\" id=\"themeStyle\" href=\"" + newHref + "\">");
153+
document.write(`<link rel="stylesheet" id="themeStyle" href="${newHref}">`);
154154
window.currentTheme = document.getElementById("themeStyle");
155155
} else if (newHref !== window.currentTheme.href) {
156156
window.currentTheme.href = newHref;

0 commit comments

Comments
 (0)