Added menubar back to dev electron app

This commit is contained in:
Joel Collins 2019-03-21 23:20:35 +00:00
parent c140d92b5f
commit 6227e2de58

View file

@ -6,8 +6,15 @@ const contextMenu = require('electron-context-menu');
let url = 'http://localhost:8080/'
app.on('ready', () => {
let window = new BrowserWindow({width: 1124, height: 800})
window.setMenu(null);
let window = new BrowserWindow({
width: 1124,
height: 800,
// Remove the window frame from windows applications
frame: false,
// Hide the titlebar from MacOS applications while keeping the stop lights
titleBarStyle: 'hidden', // or 'customButtonsOnHover',
})
//window.setMenu(null);
contextMenu({
showCopyImageAddress: true,