mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 08:15:12 +00:00
Avoid polling iframe when url is not set
This commit is contained in:
@ -168,6 +168,10 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
|||||||
errors.pipe(
|
errors.pipe(
|
||||||
tap(
|
tap(
|
||||||
response => {
|
response => {
|
||||||
|
if (this.iframeUrl.value === '') {
|
||||||
|
this.iframeReloadSubscription.unsubscribe();
|
||||||
|
this.polling.next(false);
|
||||||
|
}
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.iframeReloadSubscription.unsubscribe();
|
this.iframeReloadSubscription.unsubscribe();
|
||||||
this.polling.next(false);
|
this.polling.next(false);
|
||||||
|
Reference in New Issue
Block a user