Docs update
authorSamuel Attard <samuel.r.attard@gmail.com>
Wed, 23 Nov 2016 00:51:44 +0000 (11:51 +1100)
committerSamuel Attard <samuel.r.attard@gmail.com>
Wed, 23 Nov 2016 00:51:44 +0000 (11:51 +1100)
docs/api/menu-item.md
docs/api/web-contents.md

index 2c8a9c8..7802c3c 100644 (file)
@@ -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`.
index ba0dcdf..30fcca5 100644 (file)
@@ -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])`