feat: add preload-error event to webContents (#16411)

This commit is contained in:
Milan Burda 2019-01-18 12:03:43 +01:00 committed by Alexey Kuzmin
parent 98d0daa2fd
commit 7d4a1223fd
7 changed files with 112 additions and 7 deletions

View file

@ -663,6 +663,16 @@ Returns:
Emitted when the associated window logs a console message. Will not be emitted
for windows with *offscreen rendering* enabled.
#### Event: 'preload-error'
Returns:
* `event` Event
* `preloadPath` String
* `error` Error
Emitted when the preload script `preloadPath` throws an unhandled exception `error`.
#### Event: 'desktop-capturer-get-sources'
Returns: