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

backend/menu.js

Lines changed: 1 addition & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy