aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-02 00:22:28 +0100
committer0neGal <mail@0negal.com>2022-01-02 00:22:28 +0100
commit80eeab10e81a32c00c24608be83e7ea75ff9accf (patch)
treec12fe0163c16dead879e51f564f870fe8a7b980e /src/app/main.js
parent67b32b527aec8d36a4b6cca14677febc46f0e26d (diff)
parent1598d8b3510580cd886c884b80a69c7b2bcfa422 (diff)
downloadViper-80eeab10e81a32c00c24608be83e7ea75ff9accf.tar.gz
Viper-80eeab10e81a32c00c24608be83e7ea75ff9accf.zip
Merge branch 'main' of 0neGal/viper into mod-support
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index b0f0ebf..ab80ba9 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -6,6 +6,7 @@ const lang = require("../lang");
var settings = {
gamepath: "",
+ autoupdate: true,
zip: "/northstar.zip",
lang: navigator.language,
excludes: [
@@ -66,6 +67,12 @@ ipcRenderer.on("version", (event, versions) => {
nsversion.innerText = lang("gui.versions.northstar") + ": " + versions.ns;
}); ipcRenderer.send("getversion");
+ipcRenderer.on("updateavailable", () => {
+ if (confirm(lang("gui.update.available"))) {
+ ipcRenderer.send("updatenow");
+ }
+})
+
setlang();
setInterval(() => {
ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 20);