🔧 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({})
|
// menu.popup({})
|
||||||
if (window && typeof window === 'object' && window.constructor &&
|
if (typeof window === 'object' && window.constructor !== BrowserWindow) {
|
||||||
window.constructor.name !== 'BrowserWindow') {
|
|
||||||
opts = window
|
opts = window
|
||||||
// menu.popup(window, {})
|
// menu.popup(window, {})
|
||||||
} else if (x && typeof x === 'object') {
|
} else if (x && typeof x === 'object') {
|
||||||
|
|
Loading…
Reference in a new issue