From a22454f86fd314d10f075f0880b3d8468ffdd083 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Mon, 12 Jun 2017 10:29:16 +0200 Subject: [PATCH] simply wasm loaded logic --- crypto_generichash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })