diff --git a/light-js/index.html b/light-js/index.html index 7dc20da..05d3f83 100644 --- a/light-js/index.html +++ b/light-js/index.html @@ -106,12 +106,14 @@ subscribeButton.onclick = async () => { unsubscribe = await node.filter.subscribe(callback, [ContentTopic]) unsubscribeButton.disabled = false; + subscribeButton.disabled = true; } unsubscribeButton.onclick = async () => { await unsubscribe(); unsubscribe = undefined unsubscribeButton.disabled = true; + subscribeButton.disabled = false; } sendButton.onclick = async () => {