refactor: make name a prop on app (#17701)

Update app.name to be a property on app.
This commit is contained in:
Shelley Vohr
2019-04-30 13:55:33 -07:00
committed by GitHub
parent f2d41b7812
commit 8d83518f9a
15 changed files with 57 additions and 25 deletions

View File

@@ -155,7 +155,7 @@ const { app, Menu } = require('electron')
const template = [
// { role: 'appMenu' }
...(process.platform === 'darwin' ? [{
label: app.getName(),
label: app.name,
submenu: [
{ role: 'about' },
{ type: 'separator' },