diff options
author | 0neGal <mail@0negal.com> | 2021-12-30 19:19:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-30 19:19:16 +0100 |
commit | d2e72c40b251373fd662cab426fc04dcac1eb65a (patch) | |
tree | 6a85ad219a06c9814f00cd15d96d1171b997f623 /src/index.js | |
parent | 4a0ce8d918007a3ed39bd15c28fc1c7931080271 (diff) | |
parent | 9d8ceea77b6f172f0c055c0061bc07e6f45c0d2d (diff) | |
download | Viper-d2e72c40b251373fd662cab426fc04dcac1eb65a.tar.gz Viper-d2e72c40b251373fd662cab426fc04dcac1eb65a.zip |
Merge branch 'main' into feat/version-indicator
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 063e4df..198bc74 100644 --- a/src/index.js +++ b/src/index.js @@ -29,14 +29,18 @@ function start() { win.removeMenu(); win.loadFile(__dirname + "/app/index.html"); - ipcMain.on("exit", (event) => {process.exit(0)}) - ipcMain.on("setpath", (event) => {utils.setpath(win)}) + ipcMain.on("exit", () => {process.exit(0)}) + ipcMain.on("setpath", () => {utils.setpath(win)}) ipcMain.on("setsize", (event, height) => { win.setSize(width, height); if (! win.isVisible()) { win.show(); } }) + + ipcMain.on("ns-updated", () => {win.webContents.send("ns-updated")}) + ipcMain.on("ns-updating", () => {win.webContents.send("ns-updating")}) + ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)}) } ipcMain.on("launch", (event) => {utils.launch()}) |