1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Switch back to beforeunload in root frame

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
Sami Tiilikainen 2023-01-30 09:56:01 +02:00
parent 7a4e3a7977
commit e35e470426

View File

@ -59,7 +59,7 @@ const initRootFrameInjectable = getInjectable({
registerIpcListeners();
window.addEventListener("pagehide", () => {
window.addEventListener("beforeunload", () => {
logger.info("[ROOT-FRAME]: Unload app");
closeRendererLogFile();
unmountRoot();