aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 638bebb..2f4285e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -69,6 +69,10 @@ function start() {
process.exit(0)
}
});
+
+ ipcMain.on("gamestarted", (event) => {win.webContents.send("gamestate", true)});
+ ipcMain.on("gamestopped", (event) => {win.webContents.send("gamestate", false)});
+
ipcMain.on("minimize", () => {win.minimize()});
ipcMain.on("relaunch", () => {app.relaunch(); app.exit()});