simply wasm loaded logic

This commit is contained in:
Mathias Buus 2017-06-12 10:29:16 +02:00
parent d546f63e11
commit a22454f86f

View File

@ -31,5 +31,5 @@ module.exports.crypto_generichash_instance = function (key, outlen) {
} }
blake2b.ready(function (err) { blake2b.ready(function (err) {
if (blake2b.WASM_SUPPORTED) module.exports.crypto_generichash_WASM_LOADED = !err module.exports.crypto_generichash_WASM_LOADED = blake2b.WASM_LOADED
}) })