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.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index a33ef72..d30489e 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: [
@@ -58,6 +59,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);