From b2864add54efecf7dbad758d771fab00b35085b2 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 2 May 2023 11:13:17 +0530 Subject: [PATCH] Disable devtools completely using chromiunm args. #6183 --- runtime/package.json | 2 +- runtime/src/js/pgadmin.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/runtime/package.json b/runtime/package.json index 2963f7f91..880512ba9 100644 --- a/runtime/package.json +++ b/runtime/package.json @@ -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": { diff --git a/runtime/src/js/pgadmin.js b/runtime/src/js/pgadmin.js index d890e1f0b..e4c710a07 100644 --- a/runtime/src/js/pgadmin.js +++ b/runtime/src/js/pgadmin.js @@ -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)