mirror of
https://github.com/OpenFusionProject/Client.git
synced 2026-01-17 16:40:29 +00:00
Get version number from package.json on app start
This is easy to miss when prepping a new release so I figured we might as well automate it
This commit is contained in:
1
index.js
1
index.js
@@ -174,6 +174,7 @@ function showMainWindow() {
|
||||
|
||||
// Reduces white flash when opening the program
|
||||
mainWindow.webContents.on("did-finish-load", function () {
|
||||
mainWindow.webContents.executeJavaScript("setAppVersionText();");
|
||||
mainWindow.show();
|
||||
// everything's loaded, tell the renderer process to do its thing
|
||||
mainWindow.webContents.executeJavaScript("loadConfig();");
|
||||
|
||||
Reference in New Issue
Block a user