Selaa lähdekoodia

fix: reset data according to version

nian 2 kuukautta sitten
vanhempi
commit
92f58ab884
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/main.ts

+ 1 - 1
src/main.ts

@@ -16,7 +16,7 @@ function clearSystemData() {
   const userStore = useUserStore()
 
   const oldLocalStorage = localStorage.getItem('configure')
-  if (oldLocalStorage && haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
+  if (oldLocalStorage || haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
     tabsStore.clearTabs()
     preferencesStore.reset()
     userStore.cleanup()