Browse Source

Docs update

Samuel Attard 8 years ago
parent
commit
6a8ee19bf0
2 changed files with 5 additions and 1 deletions
  1. 1 1
      docs/api/menu-item.md
  2. 4 0
      docs/api/web-contents.md

+ 1 - 1
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`.

+ 4 - 0
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])`