mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
🔧 Make this easier to read
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user