We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Web workers, there is no window object, so the current http.Client doesn't work since it explicitly calls window.fetch():
window
http.Client
window.fetch()
http/pkgs/http/lib/src/browser_client.dart
Lines 66 to 67 in 79470d0
There is WorkerGlobalScope.fetch in Web workers. Please don't hardcode window and make it also work in Web workers. Maybe like what fetch_api does:
fetch_api
https://github.com/Zekfad/fetch_api/blob/c3c8de685b4f35079f0c0d9dcfa259afa18e8594/lib/src/fetch.dart#L7-L8
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Web workers, there is no
window
object, so the currenthttp.Client
doesn't work since it explicitly callswindow.fetch()
:http/pkgs/http/lib/src/browser_client.dart
Lines 66 to 67 in 79470d0
There is WorkerGlobalScope.fetch in Web workers. Please don't hardcode
window
and make it also work in Web workers. Maybe like whatfetch_api
does:https://github.com/Zekfad/fetch_api/blob/c3c8de685b4f35079f0c0d9dcfa259afa18e8594/lib/src/fetch.dart#L7-L8
The text was updated successfully, but these errors were encountered: