aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-23 18:17:56 +0100
committer0neGal <mail@0negal.com>2022-02-23 18:17:56 +0100
commit815106a3e1214196b25a380d83e826473840f948 (patch)
tree9b37315b8068931d69755acf7b00900f64474de5 /src/index.js
parent132fea11e3599c9c2c9df8a69fd4d093033788ba (diff)
downloadViper-815106a3e1214196b25a380d83e826473840f948.tar.gz
Viper-815106a3e1214196b25a380d83e826473840f948.zip
settings page is now fully functional
It actually saves settings, loads them properly and everything...
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 95115b4..fa2a35f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -53,6 +53,8 @@ function start() {
ipcMain.on("installedmod", (event, modname) => {win.webContents.send("installedmod", modname)});
ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())});
+ ipcMain.on("savesettings", (event, obj) => {utils.saveSettings(obj)})
+
win.webContents.on("dom-ready", () => {
win.webContents.send("mods", utils.mods.list());
});