handoff and version viewing in about.ejs
This commit is contained in:
parent
6900ed0f11
commit
f20e59d52e
4 changed files with 23 additions and 0 deletions
|
@ -1243,6 +1243,9 @@ const app = new Vue({
|
|||
if (route.indexOf("/") == -1) {
|
||||
this.page = route
|
||||
window.location.hash = this.page
|
||||
if (this.page == "settings") {
|
||||
this.getVersion()
|
||||
}
|
||||
return
|
||||
}
|
||||
let hash = route.split("/")
|
||||
|
@ -3649,6 +3652,12 @@ 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}`
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue