mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-09 12:38:35 -05:00
Fix a debugger error when using Python 2.7. Fixes #4419
Also fixes a minor bug where a reload warning was unnecessarily given when closing the debugger.
This commit is contained in:
committed by
Dave Page
parent
232fe286ee
commit
3dadb8989b
@@ -1541,8 +1541,6 @@ define([
|
||||
});
|
||||
this.panels = [];
|
||||
|
||||
pgBrowser.bind_beforeunload();
|
||||
|
||||
// Below code will be executed for indirect debugging
|
||||
// indirect debugging - 0 and for direct debugging - 1
|
||||
if (trans_id != undefined && !debug_type) {
|
||||
@@ -1853,6 +1851,7 @@ define([
|
||||
* instead, a poller is set up who will check
|
||||
*/
|
||||
if(self.preferences.debugger_new_browser_tab) {
|
||||
pgBrowser.bind_beforeunload();
|
||||
let pollIntervalId = setInterval(()=>{
|
||||
if(window.opener && window.opener.pgAdmin) {
|
||||
self.reflectPreferences();
|
||||
|
||||
Reference in New Issue
Block a user