|
@ -74,14 +74,22 @@ export default class MenuBuilder { |
|
|
label: 'View', |
|
|
label: 'View', |
|
|
submenu: [ |
|
|
submenu: [ |
|
|
{ label: 'Reload', accelerator: 'Command+R', click: () => { this.mainWindow.webContents.reload() } }, |
|
|
{ label: 'Reload', accelerator: 'Command+R', click: () => { this.mainWindow.webContents.reload() } }, |
|
|
{ label: 'Toggle Full Screen', accelerator: 'Ctrl+Command+F', click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()) } }, |
|
|
{ |
|
|
|
|
|
label: 'Toggle Full Screen', |
|
|
|
|
|
accelerator: 'Ctrl+Command+F', |
|
|
|
|
|
click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()) } |
|
|
|
|
|
}, |
|
|
{ label: 'Toggle Developer Tools', accelerator: 'Alt+Command+I', click: () => { this.mainWindow.toggleDevTools() } } |
|
|
{ label: 'Toggle Developer Tools', accelerator: 'Alt+Command+I', click: () => { this.mainWindow.toggleDevTools() } } |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
const subMenuViewProd = { |
|
|
const subMenuViewProd = { |
|
|
label: 'View', |
|
|
label: 'View', |
|
|
submenu: [ |
|
|
submenu: [ |
|
|
{ label: 'Toggle Full Screen', accelerator: 'Ctrl+Command+F', click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()) } } |
|
|
{ |
|
|
|
|
|
label: 'Toggle Full Screen', |
|
|
|
|
|
accelerator: 'Ctrl+Command+F', |
|
|
|
|
|
click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()) } |
|
|
|
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
const subMenuWindow = { |
|
|
const subMenuWindow = { |
|
|