Merge pull request #4607 from rglyall/master

Fix Menu template API example
This commit is contained in:
Cheng Zhao 2016-02-26 20:13:40 +08:00
commit d9ad51e989
3 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ var template = [
];
if (process.platform == 'darwin') {
var name = require('electron').app.getName();
var name = require('electron').remote.app.getName();
template.unshift({
label: name,
submenu: [

View file

@ -140,7 +140,7 @@ var template = [
];
if (process.platform == 'darwin') {
var name = require('electron').app.getName();
var name = require('electron').remote.app.getName();
template.unshift({
label: name,
submenu: [

View file

@ -143,7 +143,7 @@ var template = [
];
if (process.platform == 'darwin') {
var name = require('electron').app.getName();
var name = require('electron').remote.app.getName();
template.unshift({
label: name,
submenu: [