From 00d8d57e66b71529c82c22cb9582f6e059aa7315 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Thu, 5 May 2022 20:11:41 -0700 Subject: [PATCH] start proxy connection in background --- resources/js/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/js/index.js b/resources/js/index.js index 87e0f47..93c8b1a 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -472,7 +472,11 @@ async function launchPrivate() { Neutralino.storage.setData('config', JSON.stringify(config)) // Pass IP and game folder to the private server launcher - createCmdWindow(`.\\scripts\\private_server_launch.cmd ${ip} ${port} ${config.useHttps} "${config.gameexe}" "${NL_CWD}" ${config.enableKillswitch} true`).catch(e => console.log(e)) + Neutralino.os.execCommand( + `.\\scripts\\private_server_launch.cmd ${ip} ${port} ${config.useHttps} "${config.gameexe}" "${NL_CWD}" ${config.enableKillswitch} true`, { + background: true + } + ).catch(e => console.log(e)) } async function launchLocalServer() {