mirror of
https://github.com/heyman/heynote.git
synced 2024-11-25 01:13:17 +01:00
295e55552b
For the web app we also display the git hash.
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
import { app, ipcMain } from "electron"
|
|
import CONFIG from "../config"
|
|
|
|
export function getVersionString() {
|
|
let versionString = app.getVersion()
|
|
if (CONFIG.get("settings.allowBetaVersions")) {
|
|
versionString += " (beta channel)"
|
|
}
|
|
return versionString
|
|
}
|
|
|
|
ipcMain.handle("getVersion", () => getVersionString())
|