Merge pull request #3604 from niedzielski/patch-2
Update docs for webContents.addWorkSpace
This commit is contained in:
commit
6fb944c842
1 changed files with 8 additions and 1 deletions
|
@ -499,7 +499,14 @@ win.webContents.on("did-finish-load", function() {
|
||||||
|
|
||||||
* `path` String
|
* `path` String
|
||||||
|
|
||||||
Adds the specified path to DevTools workspace.
|
Adds the specified path to DevTools workspace. Must be used after DevTools
|
||||||
|
creation:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
mainWindow.webContents.on('devtools-opened', function() {
|
||||||
|
mainWindow.webContents.addWorkSpace(__dirname);
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
### `webContents.removeWorkSpace(path)`
|
### `webContents.removeWorkSpace(path)`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue