🎨
This commit is contained in:
parent
ec8b9e3f35
commit
d8fe5da3ea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue