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