docs: mention app ready event for DevTools Extension tutorial
This commit is contained in:
parent
367f94aa76
commit
ba2b8c8d3e
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ Using the [React Developer Tools][react-devtools] as example:
|
||||||
* on macOS it is `~/Library/Application Support/Google/Chrome/Default/Extensions`.
|
* on macOS it is `~/Library/Application Support/Google/Chrome/Default/Extensions`.
|
||||||
1. Pass the location of the extension to `BrowserWindow.addDevToolsExtension`
|
1. Pass the location of the extension to `BrowserWindow.addDevToolsExtension`
|
||||||
API, for the React Developer Tools, it is something like:
|
API, for the React Developer Tools, it is something like:
|
||||||
`~/Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/0.14.10_0`
|
`~/Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/0.15.0_0`
|
||||||
|
|
||||||
|
**Note:** The `BrowserWindow.addDevToolsExtension` API cannot be called before the
|
||||||
|
ready event of the app module is emitted.
|
||||||
|
|
||||||
The name of the extension is returned by `BrowserWindow.addDevToolsExtension`,
|
The name of the extension is returned by `BrowserWindow.addDevToolsExtension`,
|
||||||
and you can pass the name of the extension to the `BrowserWindow.removeDevToolsExtension`
|
and you can pass the name of the extension to the `BrowserWindow.removeDevToolsExtension`
|
||||||
|
|
Loading…
Reference in a new issue