We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b91105 commit f462b79Copy full SHA for f462b79
contexts/fileSystem/functions.ts
@@ -56,6 +56,7 @@ export const addFileSystemHandle = async (
56
},
57
FS_HANDLES
58
);
59
+
60
if (observer) observers.set(dirPath, observer);
61
} catch {
62
// Ignore errors storing handle
@@ -73,7 +74,9 @@ export const removeFileSystemHandle = async (
73
74
75
try {
76
await db.put(KEYVAL_STORE_NAME, handles, FS_HANDLES);
77
78
observers.get(directory)?.disconnect();
79
+ observers.delete(directory);
80
81
82
}
0 commit comments