Skip to content

Commit 415f099

Browse files
Handle old theme localStorage object into new theme string
1 parent babffb0 commit 415f099

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/App.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export default {
2424
},
2525
beforeMount () {
2626
try {
27-
const stored = localStorage.getItem('theme')
27+
let stored = localStorage.getItem('theme')
28+
if (stored !== 'light' && stored !== 'dark') { // Fix for moving from old theme object to new theme string
29+
stored = null
30+
}
2831
if (stored) {
2932
this.theme = stored
3033
} else {

0 commit comments

Comments
 (0)