Better handling of the IDB refreshes and updates.
This commit is contained in:
@@ -48,12 +48,13 @@ export let ae_snip = string_snippets;
|
||||
|
||||
// Set the version for the app data. Changing this should force a notification and ask the user to clear and reload the page.
|
||||
let ver = '2024-08-21_1736';
|
||||
let ver_idb = '2024-08-21_1735';
|
||||
let ver_idb = '2024-10-16_1540';
|
||||
|
||||
// *** BEGIN *** Longer-term app data. This should be stored to local storage.
|
||||
export let ae_app_local_data_struct: key_val = {
|
||||
'ver': '2024-08-16_1821',
|
||||
'ver_idb': '2024-08-16_1826', // Clear if date IndexedDB version
|
||||
last_idb_reload: null,
|
||||
ver: '2024-10-16_1540',
|
||||
ver_idb: '2024-10-16_1540', // Clear if date IndexedDB version
|
||||
name: 'Aether - App Hub (SvelteKit 2.x Svelte 4.x)',
|
||||
theme: 'light',
|
||||
iframe: false,
|
||||
@@ -198,7 +199,7 @@ export let ae_loc: Writable<key_val> = localStorageStore('ae_loc', ae_app_local_
|
||||
|
||||
// *** BEGIN *** Temporary app data. This should be stored to session storage.
|
||||
export let ae_app_session_data_struct: key_val = {
|
||||
'ver': '2024-02-27_13',
|
||||
'ver': '2024-10-16_1540',
|
||||
// ver_idb: ver_idb,
|
||||
log_lvl: 0,
|
||||
|
||||
|
||||
@@ -641,7 +641,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
|
||||
constructor() {
|
||||
super('ae_events_db');
|
||||
this.version(3).stores({
|
||||
this.version(4).stores({
|
||||
events: `
|
||||
id, event_id, event_id_random,
|
||||
code,
|
||||
|
||||
Reference in New Issue
Block a user