Optimize title with version and author
MODIFY
HiddenWallet/HiddenWallet.GUI/main.js
HiddenWallet/HiddenWallet.GUI/main.js
@@ -6,6 +6,7 @@ const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
+const packageJson = require('./package.json');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
@@ -13,7 +14,8 @@ let mainWindow;
function createWindow() {
// Create the browser window.
- mainWindow = new BrowserWindow({ width: 800, height: 600, resizable: false, title: "HiddenWallet - nopara73" });
+ var constructedTitle = "HiddenWallet " + packageJson.version + " - " + packageJson.author.name;
+ mainWindow = new BrowserWindow({ width: 800, height: 600, resizable: false, title: constructedTitle });
// and load the index.html of the app.
mainWindow.loadURL(url.format({

Optimize title with version and author