mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
lib/opfs: move getting dir into remove() try catch
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
This commit is contained in:
parent
d83d448190
commit
42b7a6ae60
@ -49,9 +49,9 @@ export class OPFSStorage extends AbstractStorage {
|
||||
export const removeFromFileStorage = async (filename: string) => {
|
||||
if (OPFSStorage.isAvailable()) {
|
||||
const root = await navigator.storage.getDirectory();
|
||||
const cobaltDir = await root.getDirectoryHandle(COBALT_PROCESSING_DIR);
|
||||
|
||||
try {
|
||||
const cobaltDir = await root.getDirectoryHandle(COBALT_PROCESSING_DIR);
|
||||
await cobaltDir.removeEntry(filename);
|
||||
} catch {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user