Add timeout to app start and cluster add events (#1631)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2020-12-03 20:01:06 +02:00
1 parent 31e914bbef
commit f95c2d1c91
2 files changed
+11 -7

No files matched your search

+8 -6
View File
@@ -61,12 +61,14 @@ export class App extends React.Component {
await requestMain(clusterSetFrameIdHandler, clusterId, frameId);
await getHostedCluster().whenReady; // cluster.activate() is done at this point
extensionLoader.loadOnClusterRenderer();
appEventBus.emit({
name: "cluster",
action: "open",
params: {
clusterId
}
setTimeout(() => {
appEventBus.emit({
name: "cluster",
action: "open",
params: {
clusterId
}
});
});
window.addEventListener("online", () => {
window.location.reload();