mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
🔧 Oh wow, that looks wrong
This commit is contained in:
@@ -63,10 +63,10 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
||||
}
|
||||
|
||||
// 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 (typeof newX !== 'number') newX = -1
|
||||
if (typeof newY !== 'number') newY = -1
|
||||
if (typeof newPosition !== 'number') newPosition = -1
|
||||
|
||||
this.popupAt(newWindow, newX, newY, newPosition)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user