Skip to content

Commit

Permalink
fix: check getDirectory is available
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Jul 1, 2024
1 parent a9f9243 commit d64b807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tmpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ declare global {
// not web context
if (
globalThis.FileSystemDirectoryHandle == null ||
globalThis.FileSystemFileHandle == null
globalThis.FileSystemFileHandle == null ||
globalThis.navigator?.storage.getDirectory == null
) {
return;
}
Expand Down

0 comments on commit d64b807

Please sign in to comment.