Improvement for 'beforeunload' event, bind the event only from where it is required.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=05ae33003056c866bafaf891c920696e48609286
Author: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)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(-)