diff --git a/crypto_generichash.js b/crypto_generichash.js index cf7694a..fd02502 100644 --- a/crypto_generichash.js +++ b/crypto_generichash.js @@ -31,5 +31,5 @@ module.exports.crypto_generichash_instance = function (key, outlen) { } blake2b.ready(function (err) { - if (blake2b.WASM_SUPPORTED) module.exports.crypto_generichash_WASM_LOADED = !err + module.exports.crypto_generichash_WASM_LOADED = blake2b.WASM_LOADED })