diff --git a/src/lib/persisted_state.js b/src/lib/persisted_state.js index d5b1c1701..f7e2b0b08 100644 --- a/src/lib/persisted_state.js +++ b/src/lib/persisted_state.js @@ -42,8 +42,6 @@ export default function createPersistedState({ console.info('waiting for old state to be loaded...') return Promise.resolve() } else { - console.log(key, state) - debugger return storage.setItem(key, state) } }, diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 53401b9bd..722dd7f16 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -677,7 +677,6 @@ export const useSyncConfigStore = defineStore('sync_config', { // Various migrations console.debug('Migrating from old config') const vuexState = (await storage.getItem('vuex-lz')) ?? {} - console.log('### sc', vuexState) const config = vuexState.config ?? {} const migratedEntries = new Set(config._syncMigration ?? []) @@ -695,7 +694,6 @@ export const useSyncConfigStore = defineStore('sync_config', { const migrated = migratedEntries.has(key) const different = !isEqual(oldValue, defaultValue) - console.log(key, oldValue) if (present && !migrated && different) { console.debug(`Migrating config ${key}: ${oldValue}`) if (key === 'theme3hacks') { @@ -715,7 +713,7 @@ export const useSyncConfigStore = defineStore('sync_config', { path: 'fontMonospace', value: oldValue.fonts.monospace, }) - useSyncConfigStore().set({ + useSyncConfigStore().setSimplePrefAndSave({ path: 'underlay', value: oldValue.underlay, }) @@ -746,7 +744,7 @@ export const useSyncConfigStore = defineStore('sync_config', { config._syncMigration = [...migratedEntries] vuexState.config = config - //storage.setItem('vuex-lz', vuexState) + storage.setItem('vuex-lz', vuexState) if (!needUpload && recent && stale) { console.debug('Checking if data needs merging...') diff --git a/src/stores/user_highlight.js b/src/stores/user_highlight.js index 737c87b49..5ca13b6a9 100644 --- a/src/stores/user_highlight.js +++ b/src/stores/user_highlight.js @@ -292,8 +292,7 @@ export const useUserHighlightStore = defineStore('user_highlight', { ) } }) - console.log('### uh', vuexState) - //storage.setItem('vuex-lz', { ...vuexState, config: { ...config, highlight } }) + storage.setItem('vuex-lz', { ...vuexState, config: { ...config, highlight } }) if (recent === null) { console.debug(