mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Disable devtools completely using chromiunm args. #6183
This commit is contained in:
parent
1219dcb1d8
commit
b2864add54
@ -5,7 +5,7 @@
|
||||
"repository": "https://github.com/postgres/pgadmin4.git",
|
||||
"author": "pgAdmin Development Team (https://www.pgadmin.org/)",
|
||||
"license": "PostgreSQL",
|
||||
"chromium-args": "--disable-popup-blocking --disable-gpu",
|
||||
"chromium-args": "--disable-popup-blocking --disable-gpu --disable-devtools",
|
||||
"user-agent": "Nwjs:%nwver-%osinfo-%chromium_ver",
|
||||
"nodejs": true,
|
||||
"window": {
|
||||
|
@ -43,11 +43,6 @@ if (fs.existsSync('dev_config.json')) {
|
||||
// This functions is used to start the pgAdmin4 server by spawning a
|
||||
// separate process.
|
||||
function startDesktopMode() {
|
||||
// Disable dev tools shortcut
|
||||
if (platform() == 'darwin') {
|
||||
nw.App.registerGlobalHotKey(new nw.Shortcut({key: 'Command+Shift+C'}), ()=>{});
|
||||
}
|
||||
|
||||
// Return if pgAdmin server process is already spawned
|
||||
// Added check for debugging purpose.
|
||||
if (pgadminServerProcess != null)
|
||||
|
Loading…
Reference in New Issue
Block a user