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

Check if webcrypto is available at all #2

Open
Lex-2008 opened this issue Aug 3, 2018 · 2 comments
Open

Check if webcrypto is available at all #2

Lex-2008 opened this issue Aug 3, 2018 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Lex-2008
Copy link
Owner

Lex-2008 commented Aug 3, 2018

We should detect availability of webcrypto and show a nice message if it's not available. And not allow user to do anything else.

@Lex-2008 Lex-2008 added the good first issue Good for newcomers label Aug 3, 2018
@rileythomp
Copy link

Does this just need a check for (window.crypto.subtle != null && window.crypto.subtle != undefined) ?

@Lex-2008
Copy link
Owner Author

Yes. Javascript-wise I would do just if(!window.crypto.subtle) for simplicity, and if it's the case - disable all controls on the page and show an error message in the error message box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants