Merge pull request #6087 from electron/public-app-menu-getter

Make Menu.getApplicationMenu() public
This commit is contained in:
Cheng Zhao 2016-06-17 00:40:14 +00:00 committed by GitHub
commit 1a70fd8efe

View file

@ -231,6 +231,10 @@ will be set as each window's top menu.
**Note:** This API has to be called after the `ready` event of `app` module.
### `Menu.getApplicationMenu()`
Returns the application menu (an instance of `Menu`), if set, or `null`, if not set.
### `Menu.sendActionToFirstResponder(action)` _OS X_
* `action` String