From ea69d09562e80e0289553a250797c1de92fcaab0 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 21 Sep 2020 19:43:51 -0700 Subject: [PATCH] fix: Guard usage of localStorage --- server/static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/static/index.html b/server/static/index.html index a0982d8f4..d5ef94d9e 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -62,7 +62,7 @@ }); } - if (window.localStorage.getItem("theme") === "dark") { + if (window.localStorage && window.localStorage.getItem("theme") === "dark") { window.document.querySelector("#root").style.background = "#111319"; }