Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
1562f13e
Unverified
Commit
1562f13e
authored
Aug 30, 2019
by
Thibaut Sardan
Committed by
GitHub
Aug 30, 2019
Browse files
feat: only show dev tools in dev environment (#544)
parent
fb0d9f88
Pipeline
#50610
passed with stages
in 10 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
packages/fether-electron/src/main/app/menu/template/index.js
View file @
1562f13e
...
...
@@ -152,15 +152,16 @@ const getMenubarMenuTemplate = fetherApp => {
const
viewTab
=
{
label
:
i18n
.
t
(
'
menu.view.submenu_name
'
),
submenu
:
[
{
role
:
'
reload
'
,
label
:
i18n
.
t
(
'
menu.view.reload
'
)
},
{
role
:
'
toggledevtools
'
,
label
:
i18n
.
t
(
'
menu.view.toggle_developer_tools
'
)
}
]
submenu
:
[{
role
:
'
reload
'
,
label
:
i18n
.
t
(
'
menu.view.reload
'
)
}]
};
if
(
!
IS_PROD
)
{
viewTab
.
submenu
.
push
({
role
:
'
toggledevtools
'
,
label
:
i18n
.
t
(
'
menu.view.toggle_developer_tools
'
)
});
}
/**
* On win32 we need to use `webContents` to make some of the menu items
* functional (whereas it is not required on Linux and macOS).
...
...
packages/fether-electron/src/main/app/options/config/index.js
View file @
1562f13e
...
...
@@ -142,7 +142,7 @@ const SECURITY_OPTIONS = {
* Potential security risk options set explicitly even when default is favourable.
* Reference: https://electronjs.org/docs/tutorial/security
*/
devTools
:
true
,
devTools
:
!
IS_PROD
,
/**
* `nodeIntegration` when enabled allows the software to use Electron's APIs
* and gain access to Node.js. It must be disabled to restricting access to
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment