Skip to content

Commit

Permalink
hide menu on about window
Browse files Browse the repository at this point in the history
  • Loading branch information
dbackowski committed Nov 17, 2018
1 parent 9ade52e commit efa17db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion electron.js
Expand Up @@ -74,6 +74,8 @@ if (process.platform !== 'darwin') {
if (!aboutWindow) {
aboutWindow = new BrowserWindow({ width: 400, height: 120, "node-integration": false, frame: true,
resizable: false, "always-on-top": true });

aboutWindow.setMenu(null);
aboutWindow.loadURL('http://localhost:8080/about.html');

aboutWindow.on('closed', function () {
Expand Down Expand Up @@ -160,7 +162,7 @@ if (process.platform !== 'darwin') {
}

function createMainWindow() {
mainWindow = new BrowserWindow({ width: 1200, height: 768, show:false, webPreferences: { nodeIntegration: false }, icon: __dirname + '/public/images/icon.png'});
mainWindow = new BrowserWindow({ width: 1200, height: 768, show: false, webPreferences: { nodeIntegration: false }, icon: __dirname + '/public/images/icon.png'});
mainWindow.loadURL('http://localhost:8080');

mainWindow.on('closed', function() {
Expand Down

0 comments on commit efa17db

Please sign in to comment.