Fix IntersectionObserver error for server
This commit is contained in:
parent
23131ac2fd
commit
32ea650c6f
|
@ -162,7 +162,7 @@ export class AppComponent {
|
|||
this.subscriptions.forEach(value => {
|
||||
if (value instanceof Subscriber) {
|
||||
value.unsubscribe();
|
||||
} else if (value instanceof IntersectionObserver) {
|
||||
} else if (typeof IntersectionObserver !== "undefined" && value instanceof IntersectionObserver) {
|
||||
value.disconnect();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue