web/storage: move clearCacheStorage() logic to clear button

This commit is contained in:
jj
2025-04-30 17:17:00 +00:00
parent 54ec1645fe
commit b3f151f3cb
2 changed files with 5 additions and 10 deletions

View File

@@ -65,14 +65,6 @@ export const clearFileStorage = async () => {
}
}
export const clearCacheStorage = async () => {
const keys = await caches.keys();
for (const key of keys) {
caches.delete(key);
}
}
export const getStorageQuota = async () => {
let estimate;
if (navigator.storage.estimate) {