🔧 Last round of feedback
This commit is contained in:
parent
89b90be6a2
commit
927c63b477
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
|||
}
|
||||
|
||||
// menu.popup({})
|
||||
if (window && window.constructor !== BrowserWindow) {
|
||||
if (window != null && window.constructor === Object) {
|
||||
opts = window
|
||||
// menu.popup(window, {})
|
||||
} else if (x && typeof x === 'object') {
|
||||
|
|
Loading…
Reference in a new issue