minht11 / local-music-pwa

Lightweight on device music player PWA.
https://snaeplayer.com/
MIT License
154 stars 20 forks source link

[Request] When using FileSystemAccess API, save the file handle in IndexedDB #24

Closed Nu11u5 closed 1 year ago

Nu11u5 commented 1 year ago

IndexedDB can serialize and store file handles from the FileSystemAccess API. This would allow the app to prompt the user to approve access to a folder that was previously selected, instead of having to re-add the folder using the file picker.

https://web.dev/file-system-access/#storing-file-handles-or-directory-handles-in-indexeddb

minht11 commented 1 year ago

The app has the persistence functionality, but previous upgrade of an UI framework changed some behaviours of object tracking. It should be fixed now.