about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-02-18 10:28:58 -0700
committerMichael Howell <michael@notriddle.com>2023-03-08 12:49:35 -0700
commit255fdb398ecaa36a274b7ef6c5760233187dc3ad (patch)
treec95b26a7b4193b1b6736576028a547df4c1b000b /src/librustdoc
parentd4dce3e2002efdbbe8167aafcb449caefba33019 (diff)
downloadrust-255fdb398ecaa36a274b7ef6c5760233187dc3ad.tar.gz
rust-255fdb398ecaa36a274b7ef6c5760233187dc3ad.zip
Update src/librustdoc/html/static/js/storage.js
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/html/static/js/storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/storage.js b/src/librustdoc/html/static/js/storage.js
index 7b3e702010a..c3fed9a72d4 100644
--- a/src/librustdoc/html/static/js/storage.js
+++ b/src/librustdoc/html/static/js/storage.js
@@ -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;