Merge pull request #1753 from dpalou/MOBILE-2114

MOBILE-2114 scorm: Fix offline data not detected on exit
main
Juan Leyva 2019-02-07 15:08:59 +01:00 committed by GitHub
commit 7604265099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -442,7 +442,9 @@ export class AddonModScormPlayerPage implements OnInit, OnDestroy {
this.tocObserver && this.tocObserver.off(); this.tocObserver && this.tocObserver.off();
this.launchNextObserver && this.launchNextObserver.off(); this.launchNextObserver && this.launchNextObserver.off();
this.launchPrevObserver && this.launchPrevObserver.off(); this.launchPrevObserver && this.launchPrevObserver.off();
setTimeout(() => {
this.goOfflineObserver && this.goOfflineObserver.off(); this.goOfflineObserver && this.goOfflineObserver.off();
}, 500);
// Unblock the SCORM so it can be synced. // Unblock the SCORM so it can be synced.
this.syncProvider.unblockOperation(AddonModScormProvider.COMPONENT, this.scorm.id, 'player'); this.syncProvider.unblockOperation(AddonModScormProvider.COMPONENT, this.scorm.id, 'player');