Merge pull request #11968 from electron/refactor-menu-popup
Refactor menu.popup
This commit is contained in:
commit
2a97e48465
6 changed files with 47 additions and 95 deletions
|
@ -63,7 +63,7 @@ const createMenu = function (x, y, items) {
|
|||
|
||||
// The menu is expected to show asynchronously.
|
||||
setTimeout(function () {
|
||||
menu.popup(remote.getCurrentWindow())
|
||||
menu.popup({window: remote.getCurrentWindow()})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue