mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Ignore failure to store fs handles
This commit is contained in:
@@ -149,14 +149,18 @@ export const addFileSystemHandle = async (
|
||||
|
||||
const db = await getKeyValStore();
|
||||
|
||||
db.put(
|
||||
KEYVAL_STORE_NAME,
|
||||
{
|
||||
...(await getFileSystemHandles()),
|
||||
[join(directory, handle.name)]: handle,
|
||||
},
|
||||
FS_HANDLES
|
||||
);
|
||||
try {
|
||||
db.put(
|
||||
KEYVAL_STORE_NAME,
|
||||
{
|
||||
...(await getFileSystemHandles()),
|
||||
[join(directory, handle.name)]: handle,
|
||||
},
|
||||
FS_HANDLES
|
||||
);
|
||||
} catch {
|
||||
// Ignore errors storing handle
|
||||
}
|
||||
};
|
||||
|
||||
export const removeFileSystemHandle = async (
|
||||
|
||||
Reference in New Issue
Block a user