fix menu.popup() sample code
This commit is contained in:
parent
5065e159f1
commit
35e90f742b
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true}))
|
|||
|
||||
window.addEventListener('contextmenu', (e) => {
|
||||
e.preventDefault()
|
||||
menu.popup(remote.getCurrentWindow())
|
||||
menu.popup({window: remote.getCurrentWindow()})
|
||||
}, false)
|
||||
</script>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue