Skip to content

Commit

Permalink
Try deleting file from storage after processing
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch committed Feb 9, 2024
1 parent 6ecf0b3 commit a3569c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/scripts/sw-file-digester.js
Expand Up @@ -44,5 +44,6 @@ async function onGetFile(fileName) {

self.postMessage({type: "file", file: file});
file = null;
// Todo: delete file from storage

await (await navigator.storage.getDirectory()).removeEntry(fileName);
}

0 comments on commit a3569c1

Please sign in to comment.