From cc86b18230cdfc7eab17e2d86a10230430ceed8a Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Mon, 26 Sep 2022 14:07:53 +1000 Subject: [PATCH] feat(rln-js): disable button until wasm blob is downloaded. --- rln-js/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rln-js/index.html b/rln-js/index.html index 97a7461..c6048e9 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -63,7 +63,9 @@ const keyDiv = document.getElementById('key'); const commitmentDiv = document.getElementById('commitment'); + generateCredsButton.disabled = true; const rlnInstance = await create(); + generateCredsButton.disabled = false; let membership; generateCredsButton.onclick = () => {