diff --git a/lib/browser/api/menu.js b/lib/browser/api/menu.js index ef7d6796f63d..33c324d4fa8c 100644 --- a/lib/browser/api/menu.js +++ b/lib/browser/api/menu.js @@ -133,7 +133,7 @@ Menu.sendActionToFirstResponder = bindings.sendActionToFirstResponder // set application menu with a preexisting menu Menu.setApplicationMenu = function (menu) { - if (menu && menu.constructor !== Menu)) { + if (menu && menu.constructor !== Menu) { throw new TypeError('Invalid menu') }