aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index fbe9bfb..c6179e0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -82,7 +82,19 @@ function start() {
// passthrough to renderer from main
ipcMain.on("win-log", (event, ...args) => {send("log", ...args)});
- ipcMain.on("win-alert", (event, ...args) => {send("alert", ...args)});
+ ipcMain.on("win-alert", (event, msg, id) => {
+ send("alert", {
+ id: id,
+ message: msg,
+ })
+ });
+
+ ipcMain.on("win-confirm", (event, msg, id) => {
+ send("confirm", {
+ id: id,
+ message: msg,
+ })
+ });
// mod states
ipcMain.on("duped-mod", (event, modname) => {send("duped-mod", modname)});