aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 8775004..230bbf9 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -54,6 +54,15 @@ if (fs.existsSync("viper.json")) {
setpath();
}
+ipcRenderer.on("changed-settings", (e, new_settings) => {
+ // attempt to set `settings` to `new_settings`
+ try {
+ settings = {
+ ...settings,
+ ...new_settings
+ }
+ }catch(e) {}
+})
// Show a toast message if no Internet connection has been detected.
if (! navigator.onLine) {