aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-30 00:04:55 +0100
committerAlystrasz <contact@remyraes.com>2021-12-30 00:04:55 +0100
commit93482ac6169a62854e360fde92abf7640389361b (patch)
tree3d276a270e68d0552408bf7b05342d1ee55942d4 /src/app/main.js
parentd402e6236b6d0523a1dfce0c9203f1cbeb907e4f (diff)
downloadViper-93482ac6169a62854e360fde92abf7640389361b.tar.gz
Viper-93482ac6169a62854e360fde92abf7640389361b.zip
[feat] displaying installed northstar version
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 579f785..684cb5a 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -34,3 +34,8 @@ function launchVanilla() {ipcRenderer.send("launchVanilla")}
ipcRenderer.on("newpath", (event, newpath) => {
settings.gamepath = newpath;
})
+
+ipcRenderer.on('versionInfo', (_, payload) => {
+ document.getElementById('nsVersion').innerText = `Northstar version: ${payload.ns}`
+});
+ipcRenderer.send('getVersionInfo');