Skip to content
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

Merged
merged 1 commit into from
Apr 25, 2018
Merged

Conversation

robwierzbowski
Copy link
Contributor

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?

Copy link
Member

@broofa broofa left a 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.

@broofa
Copy link
Member

broofa commented Apr 25, 2018

Side note: Can't wait for the day optional chaining is a thing. :-p

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.
@robwierzbowski
Copy link
Contributor Author

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 😅

@robwierzbowski
Copy link
Contributor Author

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 broofa merged commit 153d331 into uuidjs:master Apr 25, 2018
@robwierzbowski
Copy link
Contributor Author

@broofa Can you note when you release a new version on this message so we can pull the official package back into our dependencies?

broofa pushed a commit that referenced this pull request Jun 22, 2018
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants