aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-19 14:25:18 +0100
committerGitHub <noreply@github.com>2022-02-19 14:25:18 +0100
commit39da6eeecdb184e05f93ad1a8aaa1a2a95df333a (patch)
tree74b6be3a0edebe8df31c95d337ec63a64433f053 /src/index.js
parentee7dab5b056e254bff828a9b9f6d77be2287b935 (diff)
parent9e539d3d3df62df39b9a67ecf1c24734d6f8779b (diff)
downloadViper-39da6eeecdb184e05f93ad1a8aaa1a2a95df333a.tar.gz
Viper-39da6eeecdb184e05f93ad1a8aaa1a2a95df333a.zip
Merge pull request #81 from 0neGal/drag-drop
feat: drag and drop to install mods
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 344ac6c..95115b4 100644
--- a/src/index.js
+++ b/src/index.js
@@ -43,6 +43,7 @@ function start() {
ipcMain.on("exit", () => {process.exit(0)})
ipcMain.on("minimize", () => {win.minimize()})
+ ipcMain.on("installfrompath", (event, path) => {utils.mods.install(path)})
ipcMain.on("installfromurl", (event, url) => {utils.mods.installFromURL(url)})
ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)});
ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)});