diff --git a/explore/src/app/home/home.component.ts b/explore/src/app/home/home.component.ts index cd7fd622..4da64826 100644 --- a/explore/src/app/home/home.component.ts +++ b/explore/src/app/home/home.component.ts @@ -287,7 +287,9 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit{ } ngAfterViewInit() { - this.createObserver(); + if(typeof window !== "undefined") { + this.createObserver(); + } } createObserver() {