Skip to content

Commit 0972b36

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/startup.js

Lines changed: 1 addition & 1 deletion
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)