🔧 Check menu
for being falsy
This commit is contained in:
parent
8eb38be153
commit
1454783450
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ Menu.sendActionToFirstResponder = bindings.sendActionToFirstResponder
|
||||||
|
|
||||||
// set application menu with a preexisting menu
|
// set application menu with a preexisting menu
|
||||||
Menu.setApplicationMenu = function (menu) {
|
Menu.setApplicationMenu = function (menu) {
|
||||||
if (!(menu || menu.constructor === Menu)) {
|
if (!(!menu || menu.constructor === Menu)) {
|
||||||
throw new TypeError('Invalid menu')
|
throw new TypeError('Invalid menu')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue