diff options
author | 0neGal <mail@0negal.com> | 2022-01-17 18:08:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 18:08:06 +0100 |
commit | 2a9e35aaeceaa2fcfc3f6d3d35a47c808fba0c56 (patch) | |
tree | 543adaf1fb28d1602ebb643f34db748caf31a1dc /src/index.js | |
parent | 0386d37697cd22bd97dd50d0293ff90fe51d0c81 (diff) | |
parent | 9807e2f4c626dbc7741447a6f49f01e84a11686f (diff) | |
download | Viper-2a9e35aaeceaa2fcfc3f6d3d35a47c808fba0c56.tar.gz Viper-2a9e35aaeceaa2fcfc3f6d3d35a47c808fba0c56.zip |
Merge pull request #49 from 0neGal/minimize-button
Add 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)); |