diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 07ccefeff8ec..6c0fbbff6818 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -591,6 +591,18 @@ Returns: Emitted when a `` 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])`