aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 73537a2..72e0e09 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -232,7 +232,15 @@ ipcRenderer.on("newpath", (event, newpath) => {
// Continuation of log()
ipcRenderer.on("log", (event, msg) => {log(msg)})
-ipcRenderer.on("alert", (event, msg) => {alert(msg)})
+ipcRenderer.on("alert", (event, data) => {
+ alert(data.message);
+ ipcRenderer.send("alert-closed-" + data.id);
+})
+
+ipcRenderer.on("confirm", (event, data) => {
+ let confirmed = confirm(data.message);
+ ipcRenderer.send("confirm-closed-" + data.id, confirmed);
+})
// Updates the installed mods
ipcRenderer.on("mods", (event, mods_obj) => {