mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Make consistent with other example
This commit is contained in:
@@ -29,8 +29,9 @@ window.addEventListener('contextmenu', function (e) {
|
||||
|
||||
Another example of creating the application menu with the simple template API:
|
||||
|
||||
```javascript
|
||||
```html
|
||||
<!-- index.html -->
|
||||
<script>
|
||||
var remote = require('remote');
|
||||
var Menu = remote.require('menu');
|
||||
var template = [
|
||||
@@ -159,6 +160,7 @@ var template = [
|
||||
menu = Menu.buildFromTemplate(template);
|
||||
|
||||
Menu.setApplicationMenu(menu);
|
||||
</script>
|
||||
```
|
||||
|
||||
## Class: Menu
|
||||
|
||||
Reference in New Issue
Block a user