Fix iframe reload polling

This commit is contained in:
Gergo Turcsanyi 2020-05-29 11:54:26 +02:00
parent 4f3a6057a4
commit 96d27a7d2d

View File

@ -103,7 +103,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
} }
reloadIframeHandler(message: WebSocketMessage) { reloadIframeHandler(message: WebSocketMessage) {
setTimeout(() => this.reloadIframe(), 200); this.iframeReloadPoller.ok.subscribe(() => this.reloadIframe());
this.iframeReloadPoller.start();
} }
setLayout(layout: string) { setLayout(layout: string) {