From 6227e2de581a5f697ad2ba5c9068d39148ed4654 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 21 Mar 2019 23:20:35 +0000 Subject: [PATCH] Added menubar back to dev electron app --- app.dev.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app.dev.js b/app.dev.js index 762110d0..3b0210d8 100644 --- a/app.dev.js +++ b/app.dev.js @@ -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,