Skip to content

Commit c13304a

Browse files
committed
Enable devtools on production
1 parent ec733ca commit c13304a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: backend/menu.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const openAboutWindow = require('about-window').default
44

55
module.exports = function registerMenu(win) {
66
const isMac = process.platform === 'darwin'
7-
const isDev = !app.isPackaged
87
const template = [
98
...(isMac ? [{
109
label: app.name,
@@ -56,17 +55,13 @@ module.exports = function registerMenu(win) {
5655
label: 'View',
5756
submenu: [
5857
{ role: 'reload' },
58+
{ role: 'toggleDevTools' },
5959
{ type: 'separator' },
6060
{ role: 'resetZoom' },
6161
{ role: 'zoomIn' },
6262
{ role: 'zoomOut' },
6363
{ type: 'separator' },
6464
{ role: 'togglefullscreen' },
65-
...(isDev ? [
66-
{ type: 'separator' },
67-
{ role: 'toggleDevTools' },
68-
]:[
69-
])
7065
]
7166
},
7267
{

0 commit comments

Comments
 (0)