feat(rln-js): disable button until wasm blob is downloaded.

This commit is contained in:
fryorcraken.eth 2022-09-26 14:07:53 +10:00
parent 4d16cfbd5f
commit cc86b18230
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 0 deletions

View File

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