🔧 Oh wow, that looks wrong

This commit is contained in:
Felix Rieseberg 2017-12-08 14:36:29 -08:00
parent 5720a8e7d5
commit 4f901c6d24

View file

@ -63,10 +63,10 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
} }
// set defaults // set defaults
if (typeof x !== 'number') newX = -1
if (typeof y !== 'number') newY = -1
if (typeof positioningItem !== 'number') newPosition = -1
if (!window) newWindow = BrowserWindow.getFocusedWindow() if (!window) newWindow = BrowserWindow.getFocusedWindow()
if (typeof newX !== 'number') newX = -1
if (typeof newY !== 'number') newY = -1
if (typeof newPosition !== 'number') newPosition = -1
this.popupAt(newWindow, newX, newY, newPosition) this.popupAt(newWindow, newX, newY, newPosition)
} }