Merge pull request #11056 from ajmacd/allow-browser-window-logs
Allow BrowserWindows to emit `console-message` events.
This commit is contained in:
commit
a06a8a6f79
3 changed files with 25 additions and 1 deletions
|
@ -591,6 +591,18 @@ Returns:
|
|||
|
||||
Emitted when a `<webview>` has been attached to this web contents.
|
||||
|
||||
#### Event: 'console-message'
|
||||
|
||||
Returns:
|
||||
|
||||
* `level` Integer
|
||||
* `message` String
|
||||
* `line` Integer
|
||||
* `sourceId` String
|
||||
|
||||
Emitted when the associated window logs a console message. Will not be emitted
|
||||
for windows with *offscreen rendering* enabled.
|
||||
|
||||
### Instance Methods
|
||||
|
||||
#### `contents.loadURL(url[, options])`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue