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

Remove capturing phase event usage

Does not seem to be needed for log files to be successfully closed and caused integration tests to fail.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
Sami Tiilikainen 2023-02-06 16:29:54 +02:00
parent e35e470426
commit fbb17b73f5

View File

@ -84,6 +84,6 @@ export const initClusterFrame = ({
unmountRoot();
});
window.addEventListener("beforeunload", onCloseFrame, { capture: true });
window.addEventListener("pagehide", onCloseFrame, { capture: true });
window.addEventListener("beforeunload", onCloseFrame);
window.addEventListener("pagehide", onCloseFrame);
};