Browse Source

use webContents.openDevTools

https://github.com/atom/electron/issues/3125#issuecomment-148975593
Nate Goldman 9 years ago
parent
commit
da7161d5a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/tutorial/quick-start.md

+ 1 - 1
docs/tutorial/quick-start.md

@@ -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() {