From 619f74fa126b4685ac06fbe4220e29c050121d54 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Mon, 10 Oct 2016 23:01:35 -0700 Subject: [PATCH] fix Menu example --- 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 118ecad4fd71..f3ab77588cbc 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -16,7 +16,7 @@ An example of creating the application menu in the main process with the simple template API: ```javascript -const {Menu} = require('electron') +const {app, Menu} = require('electron') const template = [ { @@ -111,9 +111,8 @@ const template = [ ] if (process.platform === 'darwin') { - const name = require('electron').remote.app.getName() template.unshift({ - label: name, + label: app.getName(), submenu: [ { role: 'about'