From 255fdb398ecaa36a274b7ef6c5760233187dc3ad Mon Sep 17 00:00:00 2001
From: Michael Howell <michael@notriddle.com>
Date: Sat, 18 Feb 2023 10:28:58 -0700
Subject: [PATCH] Update src/librustdoc/html/static/js/storage.js

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
---
 src/librustdoc/html/static/js/storage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;