mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
🔧 Cleanup
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user