From 84d80500e84a934c7d101559efd49d05a9dd15dc Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 16 Jun 2021 12:59:53 +0200 Subject: [PATCH] MOBILE-3320 h5p: Fix package disappear when opening new pages --- src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts b/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts index 9cbc3878b..72bcdb169 100644 --- a/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts +++ b/src/core/features/h5p/components/h5p-iframe/h5p-iframe.ts @@ -72,7 +72,7 @@ export class CoreH5PIframeComponent implements OnChanges, OnDestroy { this.subscription = router.events .pipe(filter(event => event instanceof NavigationEnd)) .subscribe((event: NavigationEnd) => { - if (!this.iframeLoadedOnce || event.urlAfterRedirects == this.currentPageRoute) { + if (!this.iframeLoadedOnce || event.urlAfterRedirects !== this.currentPageRoute) { return; }