Add ResizeObserver disconnect in terminology page.

This commit is contained in:
Konstantinos Triantafyllou 2023-07-04 12:02:54 +03:00
parent e82bbf7968
commit e9a62e1f61
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ export class TerminologyComponent implements OnInit, OnDestroy, AfterViewInit, A
this.subscriptions.forEach(subscription => {
if (subscription instanceof Subscription) {
subscription.unsubscribe();
} else if(typeof ResizeObserver != 'undefined' && subscription instanceof ResizeObserver) {
subscription.disconnect();
}
});
}