aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-29 23:47:49 +0100
committer0neGal <mail@0negal.com>2021-12-29 23:47:49 +0100
commite199d2b6bbe48d51704156607c9e91d82ed2747f (patch)
tree3e14a567a193ba3562a92f17839b2a483dd5c09f /src/app/main.js
parent9d4515fd408c38ad081c010e052b2960f5fe3dfe (diff)
downloadViper-e199d2b6bbe48d51704156607c9e91d82ed2747f.tar.gz
Viper-e199d2b6bbe48d51704156607c9e91d82ed2747f.zip
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.
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js8
1 files changed, 4 insertions, 4 deletions
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(() => {