diff options
author | 0neGal <mail@0negal.com> | 2021-12-29 23:47:49 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2021-12-29 23:47:49 +0100 |
commit | e199d2b6bbe48d51704156607c9e91d82ed2747f (patch) | |
tree | 3e14a567a193ba3562a92f17839b2a483dd5c09f | |
parent | 9d4515fd408c38ad081c010e052b2960f5fe3dfe (diff) | |
download | Viper-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.
-rw-r--r-- | src/app/index.html | 4 | ||||
-rw-r--r-- | src/app/main.js | 8 | ||||
-rw-r--r-- | src/index.js | 8 |
3 files changed, 10 insertions, 10 deletions
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 @@ <div class="text"> <div style="white-space: nowrap;">%%gui.welcome%%</div> <div class="versions"> - <div id="vpVersion">Viper version: x.x.x</div> - <div id="nsVersion">Northstar version: x.x.x</div> + <div id="vpVersion"></div> + <div id="nsVersion"></div> </div> </div> <div class="buttons"> 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(() => { diff --git a/src/index.js b/src/index.js index b41971d..51449af 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ function start() { title: "Viper", resizable: false, titleBarStyle: "hidden", - icon: path.join(__dirname, 'assets/icons/512x512.png'), + icon: path.join(__dirname, "assets/icons/512x512.png"), webPreferences: { nodeIntegration: true, contextIsolation: false, @@ -46,10 +46,10 @@ ipcMain.on("launchVanilla", (event) => {utils.launch("vanilla")}) ipcMain.on("update", (event) => {utils.update()}) ipcMain.on("setpathcli", (event) => {utils.setpath()}); -ipcMain.on('getVersionInfo', () => { - win.webContents.send('versionInfo', { +ipcMain.on("getversion", () => { + win.webContents.send("version", { ns: utils.getInstalledVersion(), - vp: 'v' + require('../package.json').version + vp: "v" + require("../package.json").version }); }); |