aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-30 03:43:37 +0100
committer0neGal <mail@0negal.com>2021-12-30 03:43:37 +0100
commit40bba8b31cfbef319553920d9fa678ffc1a99597 (patch)
tree2835a7af5f85ed7e1623ec3cf79e5aa9400c6914 /src/index.js
parent0d0503c338ac9c22d22ee56a8d131ffe6d340638 (diff)
downloadViper-40bba8b31cfbef319553920d9fa678ffc1a99597.tar.gz
Viper-40bba8b31cfbef319553920d9fa678ffc1a99597.zip
version now refreshes, fixed and renamed stuff
The version now refreshes when you update/install Northstar, I renamed vpVersion/nsVersion to just vpversion/nsversion and getInstalledVersion() to getNSVersion(), removed uses of getElementById() with just the ID. I also added English localization. The versions text color is now bound by a CSS variable (we may use it in the future again). I'm also not sure what the point of `style="white-space: nowrap;"` was, as I don't see much of a difference? Rather instead use `<nobr>` in the lang file if needed. Besides that I did tiny code cleanup.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 51449af..660d3a0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -48,7 +48,7 @@ ipcMain.on("setpathcli", (event) => {utils.setpath()});
ipcMain.on("getversion", () => {
win.webContents.send("version", {
- ns: utils.getInstalledVersion(),
+ ns: utils.getNSVersion(),
vp: "v" + require("../package.json").version
});
});