🔧 Last round of feedback

This commit is contained in:
Felix Rieseberg 2017-12-11 15:19:33 -08:00
parent 89b90be6a2
commit 927c63b477

View file

@ -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') {