From 80b4965119db45d0eeaafb407a6bf4d3fcf3a0fb Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Wed, 2 Nov 2022 14:45:36 +0100 Subject: [PATCH] network: fix race in networkInterface by adding a ready flag --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 7f21ced..34651d8 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@ @@ -90,6 +90,7 @@ window.networkInterface.bind = bind; window.networkInterface.connect = connect; window.networkInterface.listen = listen; + window.networkInterface.ready = true; loginElem.style.cursor = "pointer"; statusElem.style.color = "white"; loginElem.onclick = () => {