feat(rln-js): do not block script on wasm download
This commit is contained in:
parent
4cc74c74d1
commit
fd2a823b1b
|
@ -63,8 +63,11 @@
|
|||
const keyDiv = document.getElementById('key');
|
||||
const commitmentDiv = document.getElementById('commitment');
|
||||
|
||||
const rlnInstance = await create();
|
||||
generateCredsButton.disabled = false;
|
||||
let rlnInstance;
|
||||
(async () => {
|
||||
rlnInstance = await create()
|
||||
generateCredsButton.disabled = false;
|
||||
})();
|
||||
|
||||
let membership;
|
||||
generateCredsButton.onclick = () => {
|
||||
|
|
Loading…
Reference in New Issue