fix(ai): liens sans vault, navigation clavier des menus et purge caches (BUG-013, BUG-014)
BUG-013: _openFileLink/_revealPath utilisent _activeVault() (contexte -> selection -> premier vault). BUG-014: navigation up/down geree au niveau du panneau en phase de capture, independante du focus. Caches: SW_VERSION v6 + migration qui purge tous les caches obsigate-*.
This commit is contained in:
+3
-3
@@ -5158,12 +5158,12 @@ curl -X POST https://votre-serveur.com/webhook \
|
||||
if (!('serviceWorker' in navigator) || !('caches' in window)) return;
|
||||
var MIGRATION_KEY = 'obsigate-sw-migration';
|
||||
try {
|
||||
if (localStorage.getItem(MIGRATION_KEY) === 'v2') return;
|
||||
localStorage.setItem(MIGRATION_KEY, 'v2');
|
||||
if (localStorage.getItem(MIGRATION_KEY) === 'v3') return;
|
||||
localStorage.setItem(MIGRATION_KEY, 'v3');
|
||||
} catch (e) { return; }
|
||||
caches.keys().then(function (names) {
|
||||
return Promise.all(names.map(function (name) {
|
||||
return /^obsigate-(v1|offline-v1)$/.test(name) ? caches.delete(name) : null;
|
||||
return /^obsigate-/.test(name) ? caches.delete(name) : null;
|
||||
}));
|
||||
}).then(function () {
|
||||
return navigator.serviceWorker.getRegistration();
|
||||
|
||||
Reference in New Issue
Block a user