Merge pull request from niedzielski/patch-2

Update docs for webContents.addWorkSpace
This commit is contained in:
Cheng Zhao 2015-11-27 18:39:11 +08:00
commit 6fb944c842

View file

@ -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)`