Skip to content

Commit

Permalink
Use file picker polyfills since FileSystemAccess blocks some directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Nov 29, 2024
1 parent 8c86373 commit 234f379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/gui/window/DirectoryWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class DirectoryWindow extends Window {
add_file.onclick = async () => {
const dropPath = this.fileDropPath
const fileHandlers = await showOpenFilePicker({
_preferPolyfill: false,
_preferPolyfill: true,
excludeAcceptAllOption: false,
multiple: true,
})
Expand Down Expand Up @@ -150,7 +150,7 @@ export class DirectoryWindow extends Window {
add_dir.onclick = async () => {
const dropPath = this.fileDropPath
const directoryHandle = await showDirectoryPicker({
_preferPolyfill: false,
_preferPolyfill: true,
})

const selected: HTMLElement | null =
Expand Down

0 comments on commit 234f379

Please sign in to comment.