Solution 0x279e7120cc41af4dad2806f37a173e197f6675319ec9c163e9b97729068f3460
All checks were successful
elffuss/validation Validation passed

T2T-Item: 0x279e7120cc41af4dad2806f37a173e197f6675319ec9c163e9b97729068f3460
T2T-Issue: 0xb8d7c6d9815eb6af5efae391d136467cda8c028200c2b5ec5a36fa6620196c53
This commit is contained in:
2026-10-02 09:02:01 +00:00
committed by elffuss-bot
parent 42a4a9a67c
commit 192516e2ab
3 changed files with 75 additions and 0 deletions

View File

@@ -49,3 +49,23 @@ export async function clearModelCache() {
navigator.serviceWorker.controller.postMessage('clear-models');
try { await caches.delete('elffuss-models-v1'); } catch { /* */ }
}
try {
if (navigator.storage && navigator.storage.getDirectory) {
const dir = await navigator.storage.getDirectory('elffuss-models');
await dir.delete('elffuss-models');
}
} catch { /* */ }
try {
if (navigator.storage && navigator.storage.getDirectory) {
const dir = await navigator.storage.getDirectory('elffuss-models');
await dir.delete('elffuss-models');
}
await caches.delete('elffuss-models-v1');
} catch { /* */ }
try {
if (navigator.storage && navigator.storage.getDirectory) {
const dir = await navigator.storage.getDirectory('elffuss-models');
await dir.delete('elffuss-models');
}
await caches.delete('elffuss-models-v1');
} catch { /* */ }