Add BrowserWindow.isDevToolsExtensionInstalled API
This commit is contained in:
parent
e824603f37
commit
0a26075699
2 changed files with 6 additions and 0 deletions
|
@ -339,4 +339,8 @@ app.once('ready', function () {
|
|||
delete manifestMap[manifest.extensionId]
|
||||
delete manifestNameMap[name]
|
||||
}
|
||||
|
||||
BrowserWindow.isDevToolsExtensionInstalled = function (name) {
|
||||
return manifestNameMap.hasOwnProperty(name)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue