From 55858d5d7d53bc5b7aa98803d98c9ab50a489cb9 Mon Sep 17 00:00:00 2001 From: Nan Yu Date: Sun, 13 Sep 2020 19:54:08 -0700 Subject: [PATCH] fix: put guard around sentry init (#1547) --- server/static/index.html | 116 +++++++++++++++++++++------------------ 1 file changed, 64 insertions(+), 52 deletions(-) diff --git a/server/static/index.html b/server/static/index.html index a3d395764..a0982d8f4 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -1,58 +1,70 @@ - + + + Outline + + + + + + + - #root { - flex: 1; - min-height: 100vh; - } - - - - -
- - - + - - - \ No newline at end of file + if (window.localStorage.getItem("theme") === "dark") { + window.document.querySelector("#root").style.background = "#111319"; + } + + +