Skip to content

Commit

Permalink
Switch back to beforeunload in root frame
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
  • Loading branch information
samitiilikainen committed Jan 30, 2023
1 parent 7a4e3a7 commit e35e470
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const initRootFrameInjectable = getInjectable({

registerIpcListeners();

window.addEventListener("pagehide", () => {
window.addEventListener("beforeunload", () => {
logger.info("[ROOT-FRAME]: Unload app");
closeRendererLogFile();
unmountRoot();
Expand Down

0 comments on commit e35e470

Please sign in to comment.