feat(rln-js): do not block script on wasm download

This commit is contained in:
fryorcraken.eth 2022-09-26 15:02:35 +10:00
parent 4cc74c74d1
commit fd2a823b1b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 2 deletions

View File

@ -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 = () => {