fix menu.popup() sample code

This commit is contained in:
Charles Kerr 2018-02-20 11:18:57 -06:00
parent 5065e159f1
commit 35e90f742b

View file

@ -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>
```