From 3fb48582fdee6d47b03002f21129a653ccf6ca22 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sun, 24 Apr 2022 13:25:39 -0700 Subject: [PATCH] server installation watcher --- resources/js/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/js/index.js b/resources/js/index.js index ceafa16..d288dac 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -275,6 +275,14 @@ async function closeFirstTimePopup() { async function runInstallScript() { Neutralino.os.execCommand(`${NL_CWD}/scripts/install.cmd "${NL_CWD}"`) + // Create an interval that will check for the proxy server installation finish + const interval = setInterval(async () => { + if (await proxyIsInstalled()) { + clearInterval(interval) + enableButtons() + } + }, 1000) + closeFirstTimePopup() }