Handle file parsing

This commit is contained in:
ZXY101
2023-08-07 17:55:34 +02:00
parent d525dd1fc9
commit 4e645467bb
5 changed files with 120 additions and 19 deletions

6
src/lib/util/upload.ts Normal file
View File

@@ -0,0 +1,6 @@
export async function requestPersistentStorage() {
if (navigator.storage && navigator.storage.persist) {
const isPersisted = await navigator.storage.persist();
console.log(`Persisted storage granted: ${isPersisted}`);
}
}