-
Notifications
You must be signed in to change notification settings - Fork 294
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
Way to use nacl in web workers #65
Labels
Comments
I have used the follwing hack to work around this issue without having to touch tweetnacl itself: var window = {}
importScripts('../vendor/nacl-fast.js')
var nacl = window.nacl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no
window
in web workers.So the easiest way to fix this — replace
window
withself
.The text was updated successfully, but these errors were encountered: