Don't show warning when main window is lost

This commit is contained in:
nathan 2022-10-18 13:45:06 -06:00
parent 19bae0054a
commit 323e45caf7

View File

@ -482,9 +482,7 @@ window.et2_call = function(_func)
*/ */
window.egw_rejoin = function () window.egw_rejoin = function ()
{ {
let warning = egw(this).message(egw.lang("Lost connection to main window"), "warning"); window.setTimeout(function ()
window.setTimeout(function ()
{ {
opener.addEventListener("load", () => opener.addEventListener("load", () =>
{ {
@ -493,7 +491,6 @@ window.egw_rejoin = function ()
window.setTimeout(() => window.setTimeout(() =>
{ {
opener.console.log("Re-set framework"); opener.console.log("Re-set framework");
warning.close();
reconnecting.close(); reconnecting.close();
this.framework = this.opener.framework; this.framework = this.opener.framework;
this.framework.egw_appWindow().console.log("Popup %s rejoined", this.location.href); this.framework.egw_appWindow().console.log("Popup %s rejoined", this.location.href);