Disable Dev Tools in production releases
`--enable-dev-tools` will bring it back.
This commit is contained in:
parent
18fb2b806e
commit
1934120e46
3 changed files with 28 additions and 7 deletions
19
app/menu.js
19
app/menu.js
|
@ -10,6 +10,7 @@ exports.createTemplate = (options, messages) => {
|
|||
|
||||
const {
|
||||
isBeta,
|
||||
devTools,
|
||||
includeSetup,
|
||||
openContactUs,
|
||||
openForums,
|
||||
|
@ -118,13 +119,17 @@ exports.createTemplate = (options, messages) => {
|
|||
label: messages.debugLog.message,
|
||||
click: showDebugLog,
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
role: 'toggledevtools',
|
||||
label: messages.viewMenuToggleDevTools.message,
|
||||
},
|
||||
...(devTools
|
||||
? [
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
role: 'toggledevtools',
|
||||
label: messages.viewMenuToggleDevTools.message,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue