Handle file parsing
This commit is contained in:
6
src/lib/util/upload.ts
Normal file
6
src/lib/util/upload.ts
Normal 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}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user