Solution 0x279e7120cc41af4dad2806f37a173e197f6675319ec9c163e9b97729068f3460
All checks were successful
elffuss/validation Validation passed
All checks were successful
elffuss/validation Validation passed
T2T-Item: 0x279e7120cc41af4dad2806f37a173e197f6675319ec9c163e9b97729068f3460 T2T-Issue: 0xb8d7c6d9815eb6af5efae391d136467cda8c028200c2b5ec5a36fa6620196c53
This commit is contained in:
@@ -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 { /* */ }
|
||||
|
||||
Reference in New Issue
Block a user