MOBILE-2840 scorm: Fix blank page on refresh
parent
a6f7feed92
commit
aa151774d8
|
@ -245,12 +245,12 @@ export class AddonModScormIndexComponent extends CoreCourseModuleMainActivityCom
|
||||||
|
|
||||||
return Promise.all(promises).then(() => {
|
return Promise.all(promises).then(() => {
|
||||||
// Check whether to launch the SCORM immediately.
|
// Check whether to launch the SCORM immediately.
|
||||||
if (typeof this.skip == 'undefined' && !this.hasOffline && !this.errorMessage &&
|
if (typeof this.skip == 'undefined') {
|
||||||
|
this.skip = !this.hasOffline && !this.errorMessage &&
|
||||||
(!this.scorm.lastattemptlock || this.scorm.attemptsLeft > 0) &&
|
(!this.scorm.lastattemptlock || this.scorm.attemptsLeft > 0) &&
|
||||||
this.accessInfo.canskipview && !this.accessInfo.canviewreport &&
|
this.accessInfo.canskipview && !this.accessInfo.canviewreport &&
|
||||||
this.scorm.skipview >= AddonModScormProvider.SKIPVIEW_FIRST &&
|
this.scorm.skipview >= AddonModScormProvider.SKIPVIEW_FIRST &&
|
||||||
(this.scorm.skipview == AddonModScormProvider.SKIPVIEW_ALWAYS || this.lastAttempt == 0)) {
|
(this.scorm.skipview == AddonModScormProvider.SKIPVIEW_ALWAYS || this.lastAttempt == 0);
|
||||||
this.skip = true;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue