mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
Merge pull request #3604 from niedzielski/patch-2
Update docs for webContents.addWorkSpace
This commit is contained in:
@@ -499,7 +499,14 @@ win.webContents.on("did-finish-load", function() {
|
||||
|
||||
* `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)`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user