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
navigator.userAgent
Within Deno Worker
self.postMessage([null, typeof navigator]) self.postMessage([null, typeof navigator.userAgent])
[ null, "object" ] [ null, "undefined" ]
This breaks the browser-or-node assumption
browser-or-node
https://github.com/flexdinesh/browser-or-node/blob/master/src/index.js#L20-L21
What does the spec say about Worker navigator.userAgent?
Is this expected?
Related flexdinesh/browser-or-node#26
The text was updated successfully, but these errors were encountered:
According to https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator it should be available, so it's a bug on our side.
Sorry, something went wrong.
fix(runtime): navigator.userAgent in web worker (#20129)
41cad21
Fixes #20079 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
fix(runtime): navigator.userAgent in web worker (denoland#20129)
f070bc4
Fixes denoland#20079 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
3ba09ea
Successfully merging a pull request may close this issue.
Within Deno Worker
This breaks the
browser-or-node
assumptionhttps://github.com/flexdinesh/browser-or-node/blob/master/src/index.js#L20-L21
What does the spec say about Worker
navigator.userAgent
?Is this expected?
Related flexdinesh/browser-or-node#26
The text was updated successfully, but these errors were encountered: