aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-03 01:09:37 +0100
committerGitExample <git@example.com>2022-02-03 01:09:37 +0100
commitd3228ae7fad117a8313731107f572ba4879569b6 (patch)
treece67a33514eccb055580f15d3b7162c5261efed3 /src/index.js
parent396c1f3c9499a2bb50b2b5f3760cc58acfe9b87f (diff)
downloadViper-d3228ae7fad117a8313731107f572ba4879569b6.tar.gz
Viper-d3228ae7fad117a8313731107f572ba4879569b6.zip
ability to download from browser
This should work for all mods, assuming that all mods come packages the same, aka, in a Zip, with mods/<mod> in it. Which from what I know they do.
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 3f50840..4849b72 100644
--- a/src/index.js
+++ b/src/index.js
@@ -47,6 +47,7 @@ function start() {
ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)});
ipcMain.on("ns-update-event", (event) => win.webContents.send("ns-update-event", event));
ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())});
+ ipcMain.on("installfromurl", (event, url) => {utils.mods.installFromURL(url)})
win.webContents.on("dom-ready", () => {
win.webContents.send("mods", utils.mods.list());