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:
parent
7a4e3a7977
commit
e35e470426
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user