Explorar o código

Replace deprecated use of `bw.openDevTools`

John Muhl %!s(int64=10) %!d(string=hai) anos
pai
achega
6cc15d5038
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.js

+ 1 - 1
main.js

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