MOBILE-3320 h5p: Fix package disappear when opening new pages
This commit is contained in:
parent
cbb69db301
commit
84d80500e8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user