web/ProcessingQueue: add estimated storage usage

This commit is contained in:
wukko
2025-02-06 22:56:05 +06:00
parent 7a042e3bfa
commit cff47da742
3 changed files with 55 additions and 15 deletions

View File

@@ -64,3 +64,10 @@ export const clearFileStorage = async () => {
}
}
export const getStorageQuota = async () => {
let estimate;
if (navigator.storage.estimate) {
estimate = await navigator.storage.estimate();
}
return estimate;
}