Skip to content

Commit

Permalink
Sync can only happen when FS exists
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Jan 18, 2025
1 parent 9cd2645 commit ed28df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ createApp({
throw new Error('read access to directory not granted')
}
this.inputFs = await this.pyodide.mountNativeFS(this.filesInputLocation, dirHandle)
} else {
} else if (this.inputFs) {
await this.inputFs.syncfs()
}

Expand All @@ -90,7 +90,7 @@ createApp({
throw new Error('read/write access to directory not granted')
}
this.outputFs = await this.pyodide.mountNativeFS(this.filesOutputLocation, dirHandle)
} else {
} else if (this.outputFs) {
await this.outputFs.syncfs()
}

Expand Down

0 comments on commit ed28df0

Please sign in to comment.