Enable dev tools to test electron build
This commit is contained in:
parent
2264b1cb7e
commit
6daaf0cb6d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue