Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: improve Error on missing webcrypto
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed May 8, 2018
1 parent e0a20af commit 971bd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto-sha1-2-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getWebCrypto () {

function webCryptoHash (type) {
if (!webCrypto) {
throw new Error('Please use a browser with webcrypto support')
throw new Error('Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS or other Secure Context')
}

return (data, callback) => {
Expand Down

0 comments on commit 971bd1b

Please sign in to comment.