]> khamidou — GitHub mirrors - electron.git/commitdiff
use webContents.openDevTools
authorNate Goldman <nate@ngoldman.me>
Tue, 20 Oct 2015 17:44:02 +0000 (10:44 -0700)
committerNate Goldman <nate@ngoldman.me>
Tue, 20 Oct 2015 17:44:02 +0000 (10:44 -0700)
https://github.com/atom/electron/issues/3125#issuecomment-148975593

docs/tutorial/quick-start.md

index 052da3d91be851328162b38e6ad0117d93cfd46d..b023deccda528bb579a627064f327581b7fd2ba2 100644 (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() {