From f36176a3649a082c99afef552a87559632536e16 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Sun, 7 Aug 2022 21:40:27 +0200 Subject: fix: lint --- src/app/browser.js | 1 - src/app/main.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app') 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")} -- cgit v1.2.3