🔧 Cleanup
This commit is contained in:
parent
3719ee0b53
commit
99031834ff
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
|||
}
|
||||
|
||||
// menu.popup({})
|
||||
if (window && typeof window === 'object' && window.constructor &&
|
||||
window.constructor.name !== 'BrowserWindow') {
|
||||
if (typeof window === 'object' && window.constructor !== BrowserWindow) {
|
||||
opts = window
|
||||
// menu.popup(window, {})
|
||||
} else if (x && typeof x === 'object') {
|
||||
|
|
Loading…
Reference in a new issue