diff --git a/lib/browser/api/menu-item.js b/lib/browser/api/menu-item.js index 7b5a688cb179..f38ab970d695 100644 --- a/lib/browser/api/menu-item.js +++ b/lib/browser/api/menu-item.js @@ -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]()