Fix Menu template API example

This commit is contained in:
Robert Lyall 2016-02-25 18:28:03 +00:00
parent 0ea80f674b
commit 6f45678e9c
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: [