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 committed 2023-01-30 14:10:05 +02:00
1 parent 7a4e3a7977
commit e35e470426
1 file changed
+1 -1
@@ -59,7 +59,7 @@ const initRootFrameInjectable = getInjectable({
registerIpcListeners(); registerIpcListeners();
window.addEventListener("pagehide", () => { window.addEventListener("beforeunload", () => {
logger.info("[ROOT-FRAME]: Unload app"); logger.info("[ROOT-FRAME]: Unload app");
closeRendererLogFile(); closeRendererLogFile();
unmountRoot(); unmountRoot();