mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Fix lint errors
This commit is contained in:
@@ -76,7 +76,7 @@ const MenuItem = (function () {
|
||||
|
||||
if (this.role && rolesMap[this.role] && process.platform !== 'darwin' && (focusedWindow != null)) {
|
||||
const methodName = rolesMap[this.role]
|
||||
if(methodInApp[methodName]) {
|
||||
if (methodInApp[methodName]) {
|
||||
return app[methodName]()
|
||||
} else if (methodInBrowserWindow[methodName]) {
|
||||
return focusedWindow[methodName]()
|
||||
|
||||
Reference in New Issue
Block a user