use webContents.openDevTools

https://github.com/atom/electron/issues/3125#issuecomment-148975593
This commit is contained in:
Nate Goldman 2015-10-20 10:44:02 -07:00
parent a0e2af6fac
commit da7161d5a7

View file

@ -107,7 +107,7 @@ app.on('ready', function() {
mainWindow.loadUrl('file://' + __dirname + '/index.html');
// Open the DevTools.
mainWindow.openDevTools();
mainWindow.webContents.openDevTools();
// Emitted when the window is closed.
mainWindow.on('closed', function() {