Disable devtools completely using chromiunm args. #6183

This commit is contained in:
Aditya Toshniwal 2023-05-02 11:13:17 +05:30
parent 1219dcb1d8
commit b2864add54
2 changed files with 1 additions and 6 deletions

View File

@ -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": {

View File

@ -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)