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

Doesn't work in web workers #155

Open
temeddix opened this issue Oct 24, 2023 · 0 comments
Open

Doesn't work in web workers #155

temeddix opened this issue Oct 24, 2023 · 0 comments

Comments

@temeddix
Copy link

temeddix commented Oct 24, 2023

On wasm32 target, the file dialog doesn't work when exeucted from a web worker, not the main thread.

image

I think this problem needs a hand, because running Rust code in web workers is a common situation. Though window is not defined in web workers, there is still FileReader API that it is still possible to be used.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers
https://developer.mozilla.org/en-US/docs/Web/API/FileReader

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

No branches or pull requests

1 participant