From 6a8ee19bf05ccd0494dd71170e38a43c5918e592 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 23 Nov 2016 11:51:44 +1100 Subject: [PATCH] Docs update --- docs/api/menu-item.md | 2 +- docs/api/web-contents.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/menu-item.md b/docs/api/menu-item.md index 2c8a9c895c8d..7802c3c01558 100644 --- a/docs/api/menu-item.md +++ b/docs/api/menu-item.md @@ -27,7 +27,7 @@ See [`Menu`](menu.md) for examples. * `visible` Boolean - (optional) If false, the menu item will be entirely hidden. * `checked` Boolean - (optional) Should only be specified for `checkbox` or `radio` type menu items. - * `submenu` MenuItemConstructorOptions[] - (optional) Should be specified for `submenu` type menu items. If + * `submenu` (MenuItemConstructorOptions[] | Menu) - (optional) Should be specified for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted. If the value is not a `Menu` then it will be automatically converted to one using `Menu.buildFromTemplate`. diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index ba0dcdfec29a..30fcca58d9cf 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -481,6 +481,10 @@ win.webContents.on('paint', (event, dirty, image) => { win.loadURL('http://github.com') ``` +#### Event: 'devtools-reload-page' + +Emitted when the devtools window instructs the webContents to reload + ### Instance Methods #### `contents.loadURL(url[, options])`