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

View File

@ -63,8 +63,11 @@
const keyDiv = document.getElementById('key'); const keyDiv = document.getElementById('key');
const commitmentDiv = document.getElementById('commitment'); const commitmentDiv = document.getElementById('commitment');
const rlnInstance = await create(); let rlnInstance;
generateCredsButton.disabled = false; (async () => {
rlnInstance = await create()
generateCredsButton.disabled = false;
})();
let membership; let membership;
generateCredsButton.onclick = () => { generateCredsButton.onclick = () => {