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

Improve Error on missing webcrypto #30

Merged
merged 1 commit into from
May 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 and run within a Secure Context')
}

return (data, callback) => {
Expand Down