web/ProcessingQueue: add estimated storage usage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user