Solution 0xfd1fc9292b86661c740f3c6d5b26490d60c8306517c7693d9325f68fcdd95723
All checks were successful
elffuss/validation Validation passed
All checks were successful
elffuss/validation Validation passed
T2T-Item: 0xfd1fc9292b86661c740f3c6d5b26490d60c8306517c7693d9325f68fcdd95723 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