From e199d2b6bbe48d51704156607c9e91d82ed2747f Mon Sep 17 00:00:00 2001 From: 0neGal Date: Wed, 29 Dec 2021 23:47:49 +0100 Subject: replaced single quotes, renamed a few things Simply code style changes, also removed the content of the version divs since they'll be replaced anyway. --- src/app/index.html | 4 ++-- src/app/main.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/app') diff --git a/src/app/index.html b/src/app/index.html index 6e31f0c..4c31255 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -9,8 +9,8 @@
%%gui.welcome%%
-
Viper version: x.x.x
-
Northstar version: x.x.x
+
+
diff --git a/src/app/main.js b/src/app/main.js index ab41af6..765b143 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -35,11 +35,11 @@ ipcRenderer.on("newpath", (event, newpath) => { settings.gamepath = newpath; }) -ipcRenderer.on('versionInfo', (_, payload) => { - document.getElementById('vpVersion').innerText = `Viper version: ${payload.vp}`; - document.getElementById('nsVersion').innerText = `Northstar version: ${payload.ns}`; +ipcRenderer.on("version", (_, payload) => { + document.getElementById("vpVersion").innerText = "Viper version:" + payload.vp; + document.getElementById("nsVersion").innerText = "Northstar version: " + payload.ns; }); -ipcRenderer.send('getVersionInfo'); +ipcRenderer.send("getversion"); setlang(); setInterval(() => { -- cgit v1.2.3