fix(settings): guard backup binding during cache updates

This commit is contained in:
Rafael Foster
2026-04-29 14:07:21 -03:00
parent 0cbd93e4e0
commit 7d02ac6c18
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -795,7 +795,7 @@ function bindEvents(container, user, users, categories, icsSubscriptions, apiTok
bindCategoryEvents(container); bindCategoryEvents(container);
bindIcsEvents(container, user, icsSubscriptions); bindIcsEvents(container, user, icsSubscriptions);
bindApiTokenEvents(container, apiTokens); bindApiTokenEvents(container, apiTokens);
bindBackupEvents(container); if (typeof bindBackupEvents === 'function') bindBackupEvents(container);
// Theme-Toggle // Theme-Toggle
const themeToggle = container.querySelector('#theme-toggle'); const themeToggle = container.querySelector('#theme-toggle');
if (themeToggle) { if (themeToggle) {
+4 -4
View File
@@ -13,10 +13,10 @@
* → bypassCacheUntil (in-memory + Cache API für SW-Restart-Robustheit) * → bypassCacheUntil (in-memory + Cache API für SW-Restart-Robustheit)
*/ */
const SHELL_CACHE = 'oikos-shell-v69'; const SHELL_CACHE = 'oikos-shell-v70';
const PAGES_CACHE = 'oikos-pages-v64'; const PAGES_CACHE = 'oikos-pages-v65';
const LOCALES_CACHE = 'oikos-locales-v13'; const LOCALES_CACHE = 'oikos-locales-v14';
const ASSETS_CACHE = 'oikos-assets-v64'; const ASSETS_CACHE = 'oikos-assets-v65';
const BYPASS_CACHE = 'oikos-bypass-flag'; const BYPASS_CACHE = 'oikos-bypass-flag';
const ALL_CACHES = [SHELL_CACHE, PAGES_CACHE, LOCALES_CACHE, ASSETS_CACHE]; const ALL_CACHES = [SHELL_CACHE, PAGES_CACHE, LOCALES_CACHE, ASSETS_CACHE];