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 self instead of window for webworker compatibility #7

Merged
merged 1 commit into from
Feb 6, 2017

Conversation

dryajov
Copy link
Contributor

@dryajov dryajov commented Feb 2, 2017

Currently webworkers have support for crypto, and using self should make detecting this capability more portable.

This PR changes window to self which should allow detection of crypto facilities in modern webworkers as well as keep being backwards compatible with dom envs in browsers.

Copy link
Owner

@indutny indutny left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@indutny indutny merged commit a06c49d into indutny:master Feb 6, 2017
@dryajov
Copy link
Contributor Author

dryajov commented Feb 7, 2017

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