From c465257d69a49c20014aed643685e6332477f728 Mon Sep 17 00:00:00 2001 From: Simas Toleikis Date: Sun, 19 Nov 2017 11:41:22 +0200 Subject: [PATCH] Fix docs for menu setApplicationMenu/getApplicationMenu methods [ci skip] --- docs/api/menu.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 05d826b99c18..9ffb3bbd75da 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -1,6 +1,5 @@ ## Class: Menu - > Create native application menus and context menus. Process: [Main](../glossary.md#main-process) @@ -15,7 +14,7 @@ The `menu` class has the following static methods: #### `Menu.setApplicationMenu(menu)` -* `menu` Menu +* `menu` Menu | null Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu` will be set as each window's top menu. @@ -27,7 +26,7 @@ effect on macOS. #### `Menu.getApplicationMenu()` -Returns `Menu` - The application menu, if set, or `null`, if not set. +Returns `Menu | null` - The application menu, if set, or `null`, if not set. **Note:** The returned `Menu` instance doesn't support dynamic addition or removal of menu items. [Instance properties](#instance-properties) can still