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')
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