aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-17 14:22:00 +0100
committer0neGal <mail@0negal.com>2022-01-17 14:22:00 +0100
commit9807e2f4c626dbc7741447a6f49f01e84a11686f (patch)
tree55035863f6b59f7f54b01a448d4a7ad165f4cc8e /src/index.js
parent4d0ef0ca26afc9dc70fbc942dd05beca19e2f0a6 (diff)
downloadViper-9807e2f4c626dbc7741447a6f49f01e84a11686f.tar.gz
Viper-9807e2f4c626dbc7741447a6f49f01e84a11686f.zip
added minimize button
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 333b1c9..1dce746 100644
--- a/src/index.js
+++ b/src/index.js
@@ -32,6 +32,7 @@ function start() {
win.loadFile(__dirname + "/app/index.html");
ipcMain.on("exit", () => {process.exit(0)})
+ ipcMain.on("minimize", () => {win.minimize()})
ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)});
ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)});
ipcMain.on("ns-update-event", (event) => win.webContents.send("ns-update-event", event));