diff --git a/app/static/app/js/dbcontrol.js b/app/static/app/js/dbcontrol.js index 213a69a..658cc2d 100644 --- a/app/static/app/js/dbcontrol.js +++ b/app/static/app/js/dbcontrol.js @@ -22,24 +22,24 @@ function initDB() { keyPath: 'id', autoIncrement: true, }); + + // Spalten definieren + store.createIndex('createdate', 'createdate', { unique: false }); + store.createIndex('date', 'date', { unique: false }); + store.createIndex('duration', 'duration', { unique: false }); + store.createIndex('type', 'type', { unique: false }); + store.createIndex('status', 'status', { unique: false }); + store.createIndex('sondertext', 'sondertext', { unique: false }); } if (!db.objectStoreNames.contains('settings')) { const settingsT = db.createObjectStore('settings', { keyPath: 'id', autoIncrement: true, }) - } - // Spalten definieren - store.createIndex('createdate', 'createdate', { unique: false }); - store.createIndex('date', 'date', { unique: false }); - store.createIndex('duration', 'duration', { unique: false }); - store.createIndex('type', 'type', { unique: false }); - store.createIndex('status', 'status', { unique: false }); - store.createIndex('sondertext', 'sondertext', { unique: false }); - - settingsT.createIndex('SettingsID', 'SettingsID', { unique: false }); - settingsT.createIndex('SettingsValue', 'SettingsValue', { unique: false }); + settingsT.createIndex('SettingsID', 'SettingsID', { unique: false }); + settingsT.createIndex('SettingsValue', 'SettingsValue', { unique: false }); + } }; request.onsuccess = function (event) { diff --git a/app/static/app/js/serviceworker.js b/app/static/app/js/serviceworker.js index a1123e0..f0b18a0 100644 --- a/app/static/app/js/serviceworker.js +++ b/app/static/app/js/serviceworker.js @@ -12,6 +12,7 @@ self.addEventListener("install", event => { '/static/app/js/home.js', '/static/app/js/timer.js', '/static/app/js/welcomeControl.js', + '/static/app/js/UpdateInfoControl.js', '/static/app/images/refresh.png', '/static/app/images/play.png', '/static/app/images/pause.png',