|
@@ -137,18 +137,10 @@ const template = [
|
|
|
label: 'View',
|
|
|
submenu: [
|
|
|
{
|
|
|
- label: 'Reload',
|
|
|
- accelerator: 'CmdOrCtrl+R',
|
|
|
- click (item, focusedWindow) {
|
|
|
- if (focusedWindow) focusedWindow.reload()
|
|
|
- }
|
|
|
+ role: 'reload'
|
|
|
},
|
|
|
{
|
|
|
- label: 'Toggle Developer Tools',
|
|
|
- accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
|
|
- click (item, focusedWindow) {
|
|
|
- if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
|
|
- }
|
|
|
+ role: 'toggledevtools'
|
|
|
},
|
|
|
{
|
|
|
type: 'separator'
|