-
-
Notifications
You must be signed in to change notification settings - Fork 903
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
Get correct version of IE11 crypto #274
Conversation
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.
Please change commit message to "fix: Get correct version of IE11 crypto
" (per Conventional Commit spec). Other than that this looks fine.
Side note: Can't wait for the day optional chaining is a thing. :-p |
748dbbf
to
9c37ff0
Compare
Users on Windows 7 and IE11 sometimes trigger a bind error because the crypto object exists but getRandomValues is undefined. Using openpgpjs/openpgpjs#207 as a reference, I've added a more robust check for the necessary crypto properties in IE 11.
9c37ff0
to
2b3db6b
Compare
Commit message updated. Re: optional chaining, for sure. Although I wish there was an alternate syntax, I'm starting to get PTSD flashbacks from working in CoffeeScript 😅 |
Oh, btw we have not had any bind errors from node-uuid on IE 11 since we deployed this fork. I believe it works. |
@broofa Can you note when you release a new version on this message so we can pull the official package back into our dependencies? |
Users on Windows 7 and IE11 sometimes trigger a bind error because the crypto object exists but getRandomValues is undefined. Using openpgpjs/openpgpjs#207 as a reference, I've added a more robust check for the necessary crypto properties in IE 11.
Users on Windows 7 and IE11 sometimes trigger a bind error because the crypto object exists but getRandomValues is undefined. Using openpgpjs/openpgpjs#207 as a reference, I've added a more robust check for the necessary crypto properties in IE 11.
We deployed our branch into production yesterday. I'll report back in a week to let everyone know if this fixed the issue or not, and if so we can potentially merge?