We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb84b22 commit 0972b36Copy full SHA for 0972b36
1 file changed
public/startup.js
@@ -1,7 +1,7 @@
1
// Blocking script to avoid the initial background flickering (switching from light to dark)
2
// https://stackoverflow.com/a/63033934/3495717
3
try {
4
- var theme = JSON.parse(localStorage.hackerTabPrefs).theme || 'dark'
+ var theme = JSON.parse(localStorage.preferences_storage).theme || 'dark'
5
document.documentElement.classList.add(theme)
6
} catch (e) {
7
console.log(e)
0 commit comments