Fixed blank screen issue while opening query tools in new tab from native menu. #5503

This commit is contained in:
Nikhil Mohite
2022-12-08 19:17:12 +05:30
committed by GitHub
parent 8f5a58a163
commit cc0d467927
6 changed files with 71 additions and 25 deletions
+7
View File
@@ -248,9 +248,16 @@ function launchPgAdminWindow() {
docsURLSubStrings.forEach(function (key) {
if (url.indexOf(key) >= 0) {
isDocURL = true;
if(key.indexOf('help') >= 0) {
url = url.slice(url.indexOf('/help'))
url = startPageUrl.slice(0, startPageUrl.indexOf('?') -1 ) + url;
}
}
});
if (openDocsInBrowser && isDocURL) {
// Do not open the window
policy.ignore();