Fix canceled close still destroyed session

This commit is contained in:
nathan 2023-08-16 10:23:58 -06:00
parent 0715b47bc8
commit 9a53dc3ffd

View File

@ -467,7 +467,7 @@ export class etemplate2
[this._etemplate_exec_id], null, null, "keepalive").sendRequest();
}, this);
window.addEventListener("beforeunload", this.destroy_session);
window.addEventListener("unload", this.destroy_session);
}
}
@ -483,6 +483,7 @@ export class etemplate2
// Chrome requires returnValue to be set
e.returnValue = '';
return "";
}
public skip_close_prompt(skip = true)