aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js3
1 files changed, 2 insertions, 1 deletions
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")}