Add condition for observer to avoid server error

This commit is contained in:
Konstantinos Triantafyllou 2022-05-06 10:53:20 +03:00
parent b4ce9d620d
commit e6a75b6ce2
3 changed files with 5 additions and 3 deletions

View File

@ -128,7 +128,9 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit, IDeactiv
}
ngAfterViewInit() {
this.createObservers();
if(typeof window !== "undefined") {
this.createObservers();
}
}
createObservers() {

@ -1 +1 @@
Subproject commit 379da49df28c27718663052aba8ccb53af72ed3f
Subproject commit 8b94b7f98acfc46bde3c6898ec5110eefeebe9c2

@ -1 +1 @@
Subproject commit 574f63ebfdf8200bfe6d4a2a7beb3774eb1f0a6e
Subproject commit 72fc50c95c775c30026fe66a87e5357731986c33