diff --git a/src/addon/mod/scorm/pages/player/player.ts b/src/addon/mod/scorm/pages/player/player.ts index 37f9f8110..eafadea86 100644 --- a/src/addon/mod/scorm/pages/player/player.ts +++ b/src/addon/mod/scorm/pages/player/player.ts @@ -295,7 +295,7 @@ export class AddonModScormPlayerPage implements OnInit, OnDestroy { /** * Page will leave. */ - ionViewWillLeave(): void { + ionViewWillUnload(): void { // Empty src when leaving the state so unload event is triggered in the iframe. this.src = ''; }