mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Call loadExtension from addDevToolsExtension
This commit is contained in:
@@ -352,6 +352,7 @@ app.once('ready', function () {
|
||||
BrowserWindow.addDevToolsExtension = function (srcDirectory) {
|
||||
const manifest = getManifestFromPath(srcDirectory)
|
||||
if (manifest) {
|
||||
loadExtension(manifest)
|
||||
for (const webContents of getAllWebContents()) {
|
||||
if (isWindowOrWebView(webContents)) {
|
||||
loadDevToolsExtensions(webContents, [manifest])
|
||||
|
||||
Reference in New Issue
Block a user