Browse Source

Merge pull request #2 from johnmuhl/johnmuhl-patch-1

Replace deprecated use of `bw.openDevTools`
Kevin Sawicki 10 năm trước cách đây
mục cha
commit
9a7571a64c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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() {