mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🔧 Last round of feedback
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user