Improvement for 'beforeunload' event, bind the event only from where it is required.
Branch ------ electron2 Details ------- https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=37cabc7e62a0b7dfe9840f9b1778aa2eda95f8c3 Author: Aditya Toshniwal <aditya.toshni...@enterprisedb.com> Modified Files -------------- web/pgadmin/browser/static/js/browser.js | 41 ++++++++++++---------- web/pgadmin/tools/debugger/static/js/direct.js | 2 ++ web/pgadmin/tools/sqleditor/static/js/sqleditor.js | 2 ++ 3 files changed, 26 insertions(+), 19 deletions(-)