captbaritone/webamp

Use showDirectoryPicker when supported

Opened this issue · 0 comments

The current implementation shows an "upload" warning dialog makes it seem like I am sending all my mp3 files to the hosted site :

image
when in fact I am just giving the web app access to those local files.

showDirectoryPicker is supported in a significant portion of browsers (80% of desktop users). It provides a nicer experience by saying "Let site view files?" :

image

showDirectoryPicker() just returns a Promise<FileSystemDirectoryHandle>