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

Use window.crypto for uuid4 if present #349

Merged
merged 2 commits into from
Jun 29, 2015

Conversation

matteosimone
Copy link
Contributor

Addressing issue #340

});
var crypto = window.crypto || window.msCrypto;

if (typeof(crypto) !== 'undefined' && crypto.getRandomValues) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to isUndefined(crypto) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem, did not see that function up there

@mattrobenolt
Copy link
Contributor

This looks awesome! I'm going to test this out later before merging.

@matteosimone
Copy link
Contributor Author

do you need any further work on this one?

mattrobenolt added a commit that referenced this pull request Jun 29, 2015
Use window.crypto for uuid4 if present
@mattrobenolt mattrobenolt merged commit d3e7025 into getsentry:master Jun 29, 2015
@mattrobenolt
Copy link
Contributor

@matteosimone Sorry about that, I verified this in modern Chrome/Firefox, but didn't touch it in IE. I'm going to assume it's ok since nobody suggested otherwise when I asked. :)

Thanks. 🍰

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