fixed code snippet in menu api documentation.

This commit is contained in:
Nick Taylor 2016-05-10 22:32:45 +02:00
parent 61bf3ae1ee
commit b54af73782

View file

@ -15,7 +15,8 @@ the user right clicks the page:
```html
<!-- index.html -->
<script>
const { Menu, MenuItem } = require('electron').remote;
const { remote } = require('electron');
const { Menu, MenuItem } = remote;
const menu = new Menu();
menu.append(new MenuItem({ label: 'MenuItem1', click: () => { console.log('item 1 clicked'); } }));