mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Guard usage of localStorage
This commit is contained in:
@@ -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";
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user