Skip to content

Commit 0972b36

Browse files
committed
fix flicketing issue
1 parent fb84b22 commit 0972b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: public/startup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Blocking script to avoid the initial background flickering (switching from light to dark)
22
// https://stackoverflow.com/a/63033934/3495717
33
try {
4-
var theme = JSON.parse(localStorage.hackerTabPrefs).theme || 'dark'
4+
var theme = JSON.parse(localStorage.preferences_storage).theme || 'dark'
55
document.documentElement.classList.add(theme)
66
} catch (e) {
77
console.log(e)

0 commit comments

Comments
 (0)