From d8fe5da3ea4642cfbca35dbb05a37f5307629eab Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 7 Jun 2016 11:02:57 -0700 Subject: [PATCH] :art: --- lib/browser/chrome-extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index f1515d8c0d..f14f56cb18 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -1,5 +1,5 @@ const {app, ipcMain, protocol, webContents, BrowserWindow} = require('electron') -const WebContents = process.atomBinding('web_contents') +const {getAllWebContents} = process.atomBinding('web_contents') const renderProcessPreferences = process.atomBinding('render_process_preferences').forAllBrowserWindow() const fs = require('fs') @@ -296,7 +296,7 @@ app.once('ready', function () { BrowserWindow.addDevToolsExtension = function (srcDirectory) { const manifest = getManifestFromPath(srcDirectory) if (manifest) { - for (const webContents of WebContents.getAllWebContents()) { + for (const webContents of getAllWebContents()) { loadDevToolsExtensions(webContents, [manifest]) } return manifest.name