aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-08-06 23:13:24 +0200
committerAlystrasz <contact@remyraes.com>2022-08-06 23:13:24 +0200
commit26034ec3475a61682a17c95cb2bffdbc9e52af54 (patch)
tree5c7553bc99f429f4ea9878c997c5b724f4bae492 /src/index.js
parent64fb444ad72bdba342a7345644a5b55d94c7f696 (diff)
downloadViper-26034ec3475a61682a17c95cb2bffdbc9e52af54.tar.gz
Viper-26034ec3475a61682a17c95cb2bffdbc9e52af54.zip
feat: display a toast message if no Internet at launch
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 148e30a..e01a635 100644
--- a/src/index.js
+++ b/src/index.js
@@ -71,6 +71,7 @@ function start() {
ipcMain.on("removed-mod", (event, modname) => {send("removed-mod", modname)});
ipcMain.on("gui-getmods", (event, ...args) => {send("mods", utils.mods.list())});
ipcMain.on("installed-mod", (event, modname) => {send("installed-mod", modname)});
+ ipcMain.on("no-internet", () => {send("no-internet")});
// install calls
ipcMain.on("install-from-path", (event, path) => {utils.mods.install(path)});