mirror of
https://github.com/Luzifer/wasm-openssl.git
synced 2024-09-18 23:42:57 +00:00
Fix: If opensslLoaded function is undefined don't call it
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d58104a492
commit
a8cdcde89a
@ -35,7 +35,7 @@ Afterwards in your HTML you can include the `wasm_exec.js` and load the binary:
|
||||
</html>
|
||||
```
|
||||
|
||||
Be sure to have a top-level function `opensslLoaded()` defined as this will be called in the initialization of the `openssl.wasm`. This serves as a notification you do have now access to the top-level functions `encrypt` and `decrypt`:
|
||||
If you have a top-level function `opensslLoaded()` defined, this will be called in the initialization of the `openssl.wasm`. This serves as a notification you do have now access to the top-level functions `encrypt` and `decrypt`:
|
||||
|
||||
```javascript
|
||||
function decrypt(ciphertext, passphrase, callback) {}
|
||||
|
Loading…
Reference in New Issue
Block a user