🔧 Oh wow, that looks wrong
This commit is contained in:
parent
5720a8e7d5
commit
4f901c6d24
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue