diff options
author | 0neGal <mail@0negal.com> | 2022-02-08 21:15:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 21:15:38 +0100 |
commit | 70e50148c8a4315c7fc25d5052f9ebee1c5d56bc (patch) | |
tree | 5670e225378ebcb0e73efb0c84265357f74f00cb /src/index.js | |
parent | e2aa874f48dc585f0d67c5655df234bdf356cc53 (diff) | |
parent | 1bd83cf1a72332e142bb63acab47ac3877061875 (diff) | |
download | Viper-70e50148c8a4315c7fc25d5052f9ebee1c5d56bc.tar.gz Viper-70e50148c8a4315c7fc25d5052f9ebee1c5d56bc.zip |
Merge pull request #50 from 0neGal/thunderstore
Thunderstore support
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index c8bfc53..a06cf69 100644 --- a/src/index.js +++ b/src/index.js @@ -43,9 +43,13 @@ function start() { ipcMain.on("exit", () => {process.exit(0)}) ipcMain.on("minimize", () => {win.minimize()}) + 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)}); ipcMain.on("ns-update-event", (event) => win.webContents.send("ns-update-event", event)); + ipcMain.on("failedmod", (event, modname) => {win.webContents.send("failedmod", modname)}); + ipcMain.on("removedmod", (event, modname) => {win.webContents.send("removedmod", modname)}); + ipcMain.on("installedmod", (event, modname) => {win.webContents.send("installedmod", modname)}); ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())}); win.webContents.on("dom-ready", () => { |