diff --git a/static/js/folders.js b/static/js/folders.js index 833bec2..353c73d 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -23,14 +23,14 @@ // picked with onPick({lead: id}). active: null = all, '' = without a folder, else a name. // The folders fold away (a "Ordner" chip), per area (the list's element id), remembered on - // this device; folded, only the folder chosen stays in sight. + // this device; folded, only the folder chosen stays in sight. Folded until opened. function areaKey(el) { const owner = el.id ? el : el.parentElement && el.parentElement.closest('[id]'); return 'diora_folders_folded_' + (owner ? owner.id : 'x'); } function folded(el) { - try { return localStorage.getItem(areaKey(el)) === '1'; } catch (e) { return false; } + try { return localStorage.getItem(areaKey(el)) !== '0'; } catch (e) { return true; } } function chips(el, o) { diff --git a/static/js/sw.js b/static/js/sw.js index 08eeb26..6320369 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v159'; +const CACHE = 'diora-v160'; const SHELL = [ '/static/css/app.css', '/static/js/app/01-core.js',