📝
This commit is contained in:
parent
cba53604eb
commit
f09e448d4d
1 changed files with 29 additions and 1 deletions
|
@ -536,6 +536,34 @@ Returns `BrowserWindow` - The window that owns the given `webContents`.
|
||||||
|
|
||||||
Returns `BrowserWindow` - The window with the given `id`.
|
Returns `BrowserWindow` - The window with the given `id`.
|
||||||
|
|
||||||
|
#### `BrowserWindow.addExtension(path)`
|
||||||
|
|
||||||
|
* `path` String
|
||||||
|
|
||||||
|
Adds Chrome extension located at `path`, and returns extension's name.
|
||||||
|
|
||||||
|
The method will also not return if the extension's manifest is missing or incomplete.
|
||||||
|
|
||||||
|
**Note:** This API cannot be called before the `ready` event of the `app` module
|
||||||
|
is emitted.
|
||||||
|
|
||||||
|
#### `BrowserWindow.removeExtension(name)`
|
||||||
|
|
||||||
|
* `name` String
|
||||||
|
|
||||||
|
Remove a Chrome extension by name.
|
||||||
|
|
||||||
|
**Note:** This API cannot be called before the `ready` event of the `app` module
|
||||||
|
is emitted.
|
||||||
|
|
||||||
|
#### `BrowserWindow.getExtensions()`
|
||||||
|
|
||||||
|
Returns `Object` - The keys are the extension names and each value is
|
||||||
|
an Object containing `name` and `version` properties.
|
||||||
|
|
||||||
|
**Note:** This API cannot be called before the `ready` event of the `app` module
|
||||||
|
is emitted.
|
||||||
|
|
||||||
#### `BrowserWindow.addDevToolsExtension(path)`
|
#### `BrowserWindow.addDevToolsExtension(path)`
|
||||||
|
|
||||||
* `path` String
|
* `path` String
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue