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

Use type-safe API for image picking in Wasm #15

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

PatilShreyas
Copy link
Contributor

Earlier we were injecting plain JS code (as a String) in Wasm target so it was not a type-safe API. This PR fixes that and uses Kotlin JS and Coroutine API for picking file and also ensures that user can only pick image/* file and no other file can be picked by user.

@joreilly
Copy link
Owner

nice!

@joreilly joreilly merged commit 148aa8a into joreilly:main Jan 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants