Skip to content

Commit

Permalink
Enable devtools on production
Browse files Browse the repository at this point in the history
  • Loading branch information
murilopolese committed Apr 23, 2024
1 parent ec733ca commit c13304a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions backend/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const openAboutWindow = require('about-window').default

module.exports = function registerMenu(win) {
const isMac = process.platform === 'darwin'
const isDev = !app.isPackaged
const template = [
...(isMac ? [{
label: app.name,
Expand Down Expand Up @@ -56,17 +55,13 @@ module.exports = function registerMenu(win) {
label: 'View',
submenu: [
{ role: 'reload' },
{ role: 'toggleDevTools' },
{ type: 'separator' },
{ role: 'resetZoom' },
{ role: 'zoomIn' },
{ role: 'zoomOut' },
{ type: 'separator' },
{ role: 'togglefullscreen' },
...(isDev ? [
{ type: 'separator' },
{ role: 'toggleDevTools' },
]:[
])
]
},
{
Expand Down

0 comments on commit c13304a

Please sign in to comment.