MOBILE-3320 h5p: Fix package disappear when opening new pages

main
Dani Palou 2021-06-16 12:59:53 +02:00
parent cbb69db301
commit 84d80500e8
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export class CoreH5PIframeComponent implements OnChanges, OnDestroy {
this.subscription = router.events this.subscription = router.events
.pipe(filter(event => event instanceof NavigationEnd)) .pipe(filter(event => event instanceof NavigationEnd))
.subscribe((event: NavigationEnd) => { .subscribe((event: NavigationEnd) => {
if (!this.iframeLoadedOnce || event.urlAfterRedirects == this.currentPageRoute) { if (!this.iframeLoadedOnce || event.urlAfterRedirects !== this.currentPageRoute) {
return; return;
} }