diff options
author | 0neGal <mail@0negal.com> | 2022-01-17 14:22:00 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-17 14:22:00 +0100 |
commit | 9807e2f4c626dbc7741447a6f49f01e84a11686f (patch) | |
tree | 55035863f6b59f7f54b01a448d4a7ad165f4cc8e /src/index.js | |
parent | 4d0ef0ca26afc9dc70fbc942dd05beca19e2f0a6 (diff) | |
download | Viper-9807e2f4c626dbc7741447a6f49f01e84a11686f.tar.gz Viper-9807e2f4c626dbc7741447a6f49f01e84a11686f.zip |
added minimize button
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 1 |
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)); |