🔧 Fix value shift
This commit is contained in:
parent
725f6c97d6
commit
93b46116f4
1 changed files with 2 additions and 5 deletions
|
@ -48,11 +48,8 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
|||
let opts
|
||||
|
||||
// menu.popup(x, y, positioningItem)
|
||||
if (!window) {
|
||||
// shift over values
|
||||
if (typeof window !== 'object' || window.constructor !== BrowserWindow) {
|
||||
[newPosition, newY, newX, newWindow] = [y, x, window, null]
|
||||
}
|
||||
if (window && typeof window !== 'object' || window.constructor !== BrowserWindow) {
|
||||
[newPosition, newY, newX, newWindow] = [y, x, window, null]
|
||||
}
|
||||
|
||||
// menu.popup({})
|
||||
|
|
Loading…
Add table
Reference in a new issue