From d5736b490d6b5ee00a49beb2beec1e216b553d03 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 20 Apr 2022 17:44:17 -0700 Subject: [PATCH] close and minimize funcs --- resources/index.html | 4 ++-- resources/js/index.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/index.html b/resources/index.html index 65912ba..f2e9495 100644 --- a/resources/index.html +++ b/resources/index.html @@ -7,10 +7,10 @@
-
+
Minimize
-
+
diff --git a/resources/js/index.js b/resources/js/index.js index 1927d97..b39452c 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -111,4 +111,12 @@ async function launchPrivate() { // Pass IP and game folder to the private server launcher Neutralino.os.execCommand(`${NL_CWD}/scripts/private_server_launch.cmd ${ip} "${config.genshinImpactFolder}/Genshin Impact Game/${await getGenshinExecName()}"`).catch(e => console.log(e)) +} + +function minimizeWin() { + Neutralino.window.minimize() +} + +function closeWin() { + Neutralino.app.exit() } \ No newline at end of file