From 9dbba4db951fa813eb17539174be425e574dc00d Mon Sep 17 00:00:00 2001 From: dpalou Date: Mon, 5 Nov 2018 12:56:36 +0100 Subject: [PATCH] MOBILE-2711 scorm: Fix SCORM disappear if tab changed --- src/addon/mod/scorm/pages/player/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; }