re-did version string in about using vue, fixed window not launching on yarn start under win10

This commit is contained in:
booploops 2022-02-11 01:37:42 -08:00
parent f20e59d52e
commit 5f1326be80
5 changed files with 6 additions and 12 deletions

View file

@ -54,6 +54,7 @@ const app = new Vue({
el: "#app",
store: store,
data: {
version: ipcRenderer.sendSync("get-version"),
appMode: "player",
ipcRenderer: ipcRenderer,
cfg: ipcRenderer.sendSync("getStore"),
@ -3652,12 +3653,6 @@ const app = new Vue({
if (sellang.startsWith("en") && this.mk.storefrontId != "en-us") sellang = "en-gb"
return await sellang
}
},
getVersion() {
ipcRenderer.send('get-version')
ipcRenderer.on('version', (event, version) => {
document.getElementById('version').innerHTML = `Version ${version}`
})
}
}
})