소스 검색

Replace deprecated use of `bw.openDevTools`

John Muhl 10 년 전
부모
커밋
6cc15d5038
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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() {