aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-31 15:40:32 +0100
committer0neGal <mail@0negal.com>2021-12-31 15:40:32 +0100
commit4f798d07731668f0e850b7d348de74bf6f422de0 (patch)
tree8e530838e0bf8826f48dd570d17ca917c22e622e /src/app/main.js
parentc8fec42e085ef255a01f62c5010e2d41bb7eb05f (diff)
parent10c786da5be323c0b2e7042e79bcee8849e25ef4 (diff)
downloadViper-4f798d07731668f0e850b7d348de74bf6f422de0.tar.gz
Viper-4f798d07731668f0e850b7d348de74bf6f422de0.zip
Merge branch 'Alystrasz-feat/version-indicator'
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 809b5c8..a33ef72 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -53,7 +53,12 @@ ipcRenderer.on("newpath", (event, newpath) => {
ipcRenderer.on("log", (event, msg) => {log(msg)})
+ipcRenderer.on("version", (event, versions) => {
+ vpversion.innerText = lang("gui.versions.viper") + ": " + versions.vp;
+ nsversion.innerText = lang("gui.versions.northstar") + ": " + versions.ns;
+}); ipcRenderer.send("getversion");
+
setlang();
setInterval(() => {
ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 20);
-}, 150)
+}, 150);