mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix syntax
This commit is contained in:
@@ -11,8 +11,9 @@ const MenuItem = function (options) {
|
||||
for (let key in options) {
|
||||
if (!(key in this)) this[key] = options[key]
|
||||
}
|
||||
if (typeof this.role === 'string' || this.role instanceof String)
|
||||
if (typeof this.role === 'string' || this.role instanceof String) {
|
||||
this.role = this.role.toLowerCase()
|
||||
}
|
||||
this.submenu = this.submenu || roles.getDefaultSubmenu(this.role)
|
||||
if (this.submenu != null && this.submenu.constructor !== Menu) {
|
||||
this.submenu = Menu.buildFromTemplate(this.submenu)
|
||||
|
||||
Reference in New Issue
Block a user