revert to more graceful template structure check (#12699)
This commit is contained in:
parent
9c65abd746
commit
7c4964fae6
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ Menu.setApplicationMenu = function (menu) {
|
|||
}
|
||||
|
||||
Menu.buildFromTemplate = function (template) {
|
||||
if (!(template instanceof Array)) {
|
||||
if (!Array.isArray(template)) {
|
||||
throw new TypeError('Invalid template for Menu')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue