Remove unnecessary formatting changes

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
Sami Tiilikainen committed 2023-04-03 16:09:40 +03:00
1 parent 42081df811
commit 22bcbadee6
1 file changed
+5 -7
@@ -39,7 +39,7 @@ export const initClusterFrame =
catalogEntityRegistry.init();
logger.info(
`${logPrefix} Init dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`
`${logPrefix} Init dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`,
);
await requestSetClusterFrameId(hostedCluster.id);
@@ -57,11 +57,9 @@ export const initClusterFrame =
onError: (error) => {
logger.warn("[CLUSTER-FRAME]: error from activeEntity when()", error);
showErrorNotification(
"Failed to get KubernetesCluster for this view. Extensions will not be loaded."
);
showErrorNotification("Failed to get KubernetesCluster for this view. Extensions will not be loaded.");
},
},
}
);
setTimeout(() => {
@@ -74,12 +72,12 @@ export const initClusterFrame =
});
});
window.addEventListener("beforeunload", () => {
window.onbeforeunload = () => {
logger.info(
`${logPrefix} Unload dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`
);
unmountRoot();
closeFileLogging();
});
};
};