File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,14 @@ Using the [React Developer Tools][react-devtools] as example:
2929 * on macOS it is ` ~/Library/Application Support/Google/Chrome/Default/Extensions ` .
30301 . Pass the location of the extension to ` BrowserWindow.addDevToolsExtension `
3131 API, for the React Developer Tools, it is something like:
32- ` ~/Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/0.15.0_0 `
32+ ``` javascript
33+ const path = require (' path' )
34+ const os = require (' os' )
35+
36+ BrowserWindow .addDevToolsExtension (
37+ path .join (os .homedir (), ' /Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/0.15.0_0' )
38+ )
39+ ```
3340
3441** Note:** The ` BrowserWindow.addDevToolsExtension ` API cannot be called before the
3542ready event of the app module is emitted.
You can’t perform that action at this time.
0 commit comments