diff options
author | 0neGal <mail@0negal.com> | 2022-06-07 17:23:33 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-06-07 17:24:41 +0200 |
commit | 59aa33289cebd63432904ac69fa7d9f4f2bc1b9c (patch) | |
tree | d937953babe0a2b40fcbc5dd1f55df2964db4bc8 /src/index.js | |
parent | 0944356fb64512396c46b374197fdfb2606aeb07 (diff) | |
download | Viper-59aa33289cebd63432904ac69fa7d9f4f2bc1b9c.tar.gz Viper-59aa33289cebd63432904ac69fa7d9f4f2bc1b9c.zip |
minor changes
Mostly syntax, but also a few fixes with how the settings system work,
and also a change in localization strings.
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js index a566b57..2c03529 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,6 @@ const { app, ipcMain, BrowserWindow, dialog } = require("electron"); const utils = require("./utils"); const cli = require("./cli"); const requests = require("./extras/requests"); -const { settings } = require("./utils"); var log = console.log; @@ -48,7 +47,7 @@ function start() { }; send = win.send; ipcMain.on("exit", () => { - if (settings.originkill) { + if (utils.settings.originkill) { utils.isOriginRunning().then((running) => { if (running) { utils.killOrigin().then(process.exit(0)) @@ -60,8 +59,8 @@ function start() { process.exit(0) } }); - ipcMain.on("minimize", () => { win.minimize() }); - ipcMain.on("relaunch", () => { app.relaunch(); app.exit() }); + ipcMain.on("minimize", () => {win.minimize()}); + ipcMain.on("relaunch", () => {app.relaunch(); app.exit()}); // passthrough to renderer from main ipcMain.on("win-log", (event, ...args) => {send("log", ...args)}); |