:art:
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 7 Jun 2016 18:02:57 +0000 (11:02 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Wed, 8 Jun 2016 19:00:13 +0000 (12:00 -0700)
lib/browser/chrome-extension.js

index f1515d8c0df777003ca7dfff23a9a1ace1cca575..f14f56cb186693258fcd7804a673ab26dfed8f94 100644 (file)
@@ -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