Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HTMLInputElement:webkitdirectory API (principally for Firefox) #421

Closed
Jaifroid opened this issue Jul 9, 2023 · 0 comments · Fixed by #422
Closed

Add support for HTMLInputElement:webkitdirectory API (principally for Firefox) #421

Jaifroid opened this issue Jul 9, 2023 · 0 comments · Fixed by #422
Assignees
Labels
enhancement upstream Should be worked on in kiwix-js
Milestone

Comments

@Jaifroid
Copy link
Member

Jaifroid commented Jul 9, 2023

See kiwix/kiwix-js#1032 for the upstream version of this. It is much easier to add this here, since we already support the File System Access API in KJSWL, and the webkitdirectory API is a "poormans" version of that API. It is mostly a case of inserting a few hooks, and dealing with loading split archives from any picked directory.

Once the directory is picked, the API is indistinguishable from the File System Access API. The main difference is having to pick the directory of ZIM archives at the start of each session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement upstream Should be worked on in kiwix-js
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant