Merge pull request #1583 from dpalou/MOBILE-2711
MOBILE-2711 scorm: Fix SCORM disappear if tab changedmain
commit
0327c092e0
|
@ -295,7 +295,7 @@ export class AddonModScormPlayerPage implements OnInit, OnDestroy {
|
||||||
/**
|
/**
|
||||||
* Page will leave.
|
* Page will leave.
|
||||||
*/
|
*/
|
||||||
ionViewWillLeave(): void {
|
ionViewWillUnload(): void {
|
||||||
// Empty src when leaving the state so unload event is triggered in the iframe.
|
// Empty src when leaving the state so unload event is triggered in the iframe.
|
||||||
this.src = '';
|
this.src = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue