Disable devtools

This commit is contained in:
Daniel Sanchez 2021-01-18 10:20:04 +01:00
parent 6daaf0cb6d
commit 54ed65ca4e
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ function createWindow(port = DEFAULT_PORT) {
mainWindow.loadURL(isDev ? 'http://localhost:3000' : `https://localhost:${port}`) mainWindow.loadURL(isDev ? 'http://localhost:3000' : `https://localhost:${port}`)
// if (isDev) { if (isDev) {
// Open the DevTools. // Open the DevTools.
mainWindow.webContents.openDevTools() mainWindow.webContents.openDevTools()
//BrowserWindow.addDevToolsExtension('<location to your react chrome extension>'); //BrowserWindow.addDevToolsExtension('<location to your react chrome extension>');
// } }
mainWindow.setMenu(null) mainWindow.setMenu(null)
mainWindow.setMenuBarVisibility(false) mainWindow.setMenuBarVisibility(false)