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 typeof to check for crypto rather than global. Fixes #185 #221

Merged
merged 4 commits into from
Sep 9, 2017

Conversation

broofa
Copy link
Member

@broofa broofa commented Sep 8, 2017

No description provided.

@broofa broofa requested a review from defunctzombie September 8, 2017 01:53
@broofa broofa requested a review from vvo September 8, 2017 17:14

var crypto = global.crypto || global.msCrypto; // for IE 11
if (crypto && crypto.getRandomValues) {
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.

!== ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll address this and the other eslint issues you raised in the other PRs in the eslint PR.

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