mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
use webContents.openDevTools
https://github.com/atom/electron/issues/3125#issuecomment-148975593
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user