From 00665b95019b6f017328bbe61962c0ad233714fe Mon Sep 17 00:00:00 2001 From: Andrew MacDonald Date: Wed, 8 Nov 2017 09:35:01 -0800 Subject: [PATCH] Add documentation to web-contents.md. --- docs/api/web-contents.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 07ccefeff8e..6c0fbbff681 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])`