mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
refactor: make name a prop on app (#17701)
Update app.name to be a property on app.
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user