use webContents.openDevTools
https://github.com/atom/electron/issues/3125#issuecomment-148975593
This commit is contained in:
parent
a0e2af6fac
commit
da7161d5a7
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ app.on('ready', function() {
|
||||||
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
||||||
|
|
||||||
// Open the DevTools.
|
// Open the DevTools.
|
||||||
mainWindow.openDevTools();
|
mainWindow.webContents.openDevTools();
|
||||||
|
|
||||||
// Emitted when the window is closed.
|
// Emitted when the window is closed.
|
||||||
mainWindow.on('closed', function() {
|
mainWindow.on('closed', function() {
|
||||||
|
|
Loading…
Reference in a new issue