From 6cc15d50380f2599366930a55a186a965f3eb8e6 Mon Sep 17 00:00:00 2001 From: John Muhl Date: Tue, 20 Oct 2015 17:20:57 -0500 Subject: [PATCH] Replace deprecated use of `bw.openDevTools` --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index c596830..a7a46d6 100644 --- a/main.js +++ b/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() {