Skip to content

Commit b9c52b9

Browse files
lideldaviddias
authored andcommitted
fix: improve Error on missing webcrypto
Background: ipfs/ipfs-companion#475
1 parent e0a20af commit b9c52b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto-sha1-2-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getWebCrypto () {
1818

1919
function webCryptoHash (type) {
2020
if (!webCrypto) {
21-
throw new Error('Please use a browser with webcrypto support')
21+
throw new Error('Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context')
2222
}
2323

2424
return (data, callback) => {

0 commit comments

Comments
 (0)