From afa03e2ad124ea0e849e54c394b8d15413845b0f Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 8 May 2018 12:51:46 +0200 Subject: [PATCH] fix: improve Error on missing webcrypto Background: https://github.com/ipfs-shipyard/ipfs-companion/issues/475 --- src/crypto-sha1-2-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto-sha1-2-browser.js b/src/crypto-sha1-2-browser.js index bbb207d9..83e339da 100644 --- a/src/crypto-sha1-2-browser.js +++ b/src/crypto-sha1-2-browser.js @@ -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 and run within a Secure Context') } return (data, callback) => {