Commit 6a197b12680504c06ada2bc4d50241dabc1cf032
use view roles instead of hardcoded
Matt McKegg committed on 3/13/2017, 2:34:54 AMParent: daf9454b6bd3dc780561f4c2806d2b75f64e1238
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -23,17 +23,18 @@ | ||
23 | 23 | server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb')) |
24 | 24 | }, () => { |
25 | 25 | var menu = defaultMenu(electron.app, electron.shell) |
26 | 26 | var view = menu.find(x => x.label === 'View') |
27 | - view.submenu.push({ | |
28 | - label: 'Zoom In', | |
29 | - accelerator: 'CmdOrCtrl+=', | |
30 | - role: 'zoomin' | |
31 | - }, { | |
32 | - label: 'Zoom Out', | |
33 | - accelerator: 'CmdOrCtrl+-', | |
34 | - role: 'zoomout' | |
35 | - }) | |
27 | + view.submenu = [ | |
28 | + { role: 'reload' }, | |
29 | + { role: 'toggledevtools' }, | |
30 | + { type: 'separator' }, | |
31 | + { role: 'resetzoom' }, | |
32 | + { role: 'zoomin' }, | |
33 | + { role: 'zoomout' }, | |
34 | + { type: 'separator' }, | |
35 | + { role: 'togglefullscreen' } | |
36 | + ] | |
36 | 37 | Menu.setApplicationMenu(Menu.buildFromTemplate(menu)) |
37 | 38 | openMainWindow() |
38 | 39 | }) |
39 | 40 |
Built with git-ssb-web