Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edge does not appear to make a global `crypto` variable available in WebWorkers however the WebCrypto seems to be exposed on the `self` variable, see sodium-friends/sodium-javascript#8 Since window.self also points to the window object in browsers checking self should work both, in the browser as well as in WebWorkers. Fixes #392
- Loading branch information
713053f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this actually fix the problem? Edge 18 provides
self
in webworkers, yes, but theself.crypto
andself.msCrypto
are undefined... at least, from what I can see.713053f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was on a wrong path here, mislead by this issue https://github.com/sodium-friends/sodium-javascript/issues/8…
It fixes nothing and I have removed this branch again, see #392 (comment).