Skip to content

Commit f9ce9e7

Browse files
committed
Fix idbPersistState being undefined on the actual mount
1 parent 78586c3 commit f9ce9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/libidbfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ addToLibrary({
5454
// If the automatic IDBFS persistence option has been selected, then automatically persist
5555
// all modifications to the filesystem as they occur.
5656
if (mount?.opts?.autoPersist) {
57-
mnt.idbPersistState = 0; // IndexedDB sync starts in idle state
57+
mount.idbPersistState = 0; // IndexedDB sync starts in idle state
5858
var memfs_node_ops = mnt.node_ops;
5959
mnt.node_ops = {...mnt.node_ops}; // Clone node_ops to inject write tracking
6060
mnt.node_ops.mknod = (parent, name, mode, dev) => {

0 commit comments

Comments
 (0)