Hi Aditya,
it is not a problem with the browser cache, it is a different behaviour if pgadmin is startet in the addressline oft he browser or via link clicking from an other site.
If document.referrer is empty then Query tool can start in another browser tab.
If document referrer contains another hostname then a cross site scripting police prevents access to javascript code in an other tab.
I am not a web developer but i think this has to be fxed in .html or .js code.
I will wait for 4.20
Thanks
Harald
Von: Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Gesendet: Freitag, 13. März 2020 12:37
An: Immerheiser, Harald <Harald.Immerheiser@RUV.de>
Cc: pgAdmin Support <pgadmin-support@postgresql.org>
Betreff: Re: Query tool does not load pgadmin 4
Try clearing the browser cache.
Hello,
I am using pgadmin 4.19 in server mode and the query editor in a new browser tab just keeps spinning and says loading.
In the Browser Console i can see th messsage:
TypeError: e.get_preference(...) is undefined
If i start the Query tool in the same window, it works fine.
(File>Preferences>Query Tool>Display>Open in new browser tab = false)
This only happens if pgAdmin is startet by clicking a Hyperlink from an Wiki an other host.
If i start pgAdmin in the addressline of the browser there is no Problem.
Regards
Harald Immerheiser
--
Thanks and Regards,
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"