aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-18 15:44:54 +0100
committer0neGal <mail@0negal.com>2022-01-18 15:44:54 +0100
commit2ed4338b9608211c07c4dd620e7f3b073131388a (patch)
tree33c8294cfc5c6ffecb8175838e6f6d21fafd36b7 /src/index.js
parent8829aab94b5cfc65cfbbe456015d9aabc22a0804 (diff)
parent912d427d0fde6b25341f9accb542eeaf4798fc64 (diff)
downloadViper-2ed4338b9608211c07c4dd620e7f3b073131388a.tar.gz
Viper-2ed4338b9608211c07c4dd620e7f3b073131388a.zip
Merge branch 'main' of https://github.com/0neGal/viper
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));