🔧 Cleanup

This commit is contained in:
Felix Rieseberg 2017-12-08 14:40:51 -08:00
parent 3719ee0b53
commit 99031834ff

View file

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