🔧 Make this easier to read
This commit is contained in:
parent
07dea13c77
commit
3dcde82485
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