mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
📝 Match destructuring style
[ci skip]
This commit is contained in:
@@ -15,7 +15,7 @@ the user right clicks the page:
|
||||
```html
|
||||
<!-- index.html -->
|
||||
<script>
|
||||
const { Menu, MenuItem } = require('electron').remote;
|
||||
const {Menu, MenuItem} = require('electron').remote;
|
||||
|
||||
const menu = new Menu();
|
||||
menu.append(new MenuItem({ label: 'MenuItem1', click: () => { console.log('item 1 clicked'); } }));
|
||||
|
||||
Reference in New Issue
Block a user