We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec733ca commit c13304aCopy full SHA for c13304a
backend/menu.js
@@ -4,7 +4,6 @@ const openAboutWindow = require('about-window').default
4
5
module.exports = function registerMenu(win) {
6
const isMac = process.platform === 'darwin'
7
- const isDev = !app.isPackaged
8
const template = [
9
...(isMac ? [{
10
label: app.name,
@@ -56,17 +55,13 @@ module.exports = function registerMenu(win) {
56
55
label: 'View',
57
submenu: [
58
{ role: 'reload' },
+ { role: 'toggleDevTools' },
59
{ type: 'separator' },
60
{ role: 'resetZoom' },
61
{ role: 'zoomIn' },
62
{ role: 'zoomOut' },
63
64
{ role: 'togglefullscreen' },
65
- ...(isDev ? [
66
- { type: 'separator' },
67
- { role: 'toggleDevTools' },
68
- ]:[
69
- ])
70
]
71
},
72
{
0 commit comments