diff options
author | Alystrasz <contact@remyraes.com> | 2022-08-07 21:40:27 +0200 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-08-07 21:40:27 +0200 |
commit | f36176a3649a082c99afef552a87559632536e16 (patch) | |
tree | f1031648e765dbfa6e2b5a49602b3d1dbee8e6a2 | |
parent | 3a8875a24cf66ff4fd6b39cfb9ce2314191f34f4 (diff) | |
download | Viper-f36176a3649a082c99afef552a87559632536e16.tar.gz Viper-f36176a3649a082c99afef552a87559632536e16.zip |
fix: lint
-rw-r--r-- | src/app/browser.js | 1 | ||||
-rw-r--r-- | src/app/main.js | 3 | ||||
-rw-r--r-- | src/utils.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index b1576a9..db68d31 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -392,7 +392,6 @@ ipcRenderer.on("failed-mod", (event, modname) => { }) ipcRenderer.on("no-internet", (event, modname) => { - console.log('yo') setButtons(true); new Toast({ timeout: 10000, diff --git a/src/app/main.js b/src/app/main.js index 163c63d..d6a57d6 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -64,8 +64,9 @@ if (fs.existsSync("viper.json")) { // Show a toast message if no Internet connection has been detected. -if (!navigator.onLine) +if (!navigator.onLine) { ipcRenderer.send("no-internet"); +} function exit() {ipcRenderer.send("exit")} function update() {ipcRenderer.send("update")} diff --git a/src/utils.js b/src/utils.js index b5978b6..31a2b28 100644 --- a/src/utils.js +++ b/src/utils.js @@ -155,7 +155,7 @@ function handleNorthstarUpdating() { async function _checkForUpdates() { let localVersion = getNSVersion(); let distantVersion = await requests.getLatestNsVersion(); - if (distantVersion == false) return; + if (distantVersion == false) { return; } console.log(lang("cli.autoupdates.checking")); // Checks if NS is outdated |