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:
Aditya Toshniwal
2019-08-23 09:43:51 +01:00
committed by Dave Page
parent 232fe286ee
commit 3dadb8989b
3 changed files with 4 additions and 4 deletions
@@ -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();