Popup pepper menu in owner browser window
This commit is contained in:
parent
c951e253c6
commit
739f3ed102
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ WebContents.prototype._init = function () {
|
|||
this.on('pepper-context-menu', function (event, params) {
|
||||
// Access Menu via electron.Menu to prevent circular require
|
||||
const menu = electron.Menu.buildFromTemplate(params.menu)
|
||||
menu.popup(params.x, params.y)
|
||||
menu.popup(event.sender.getOwnerBrowserWindow(), params.x, params.y)
|
||||
})
|
||||
|
||||
// The devtools requests the webContents to reload.
|
||||
|
|
Loading…
Add table
Reference in a new issue