MOBILE-2873 scorm: Fix scorm sync before prefetch
parent
24fb3d999c
commit
7f32b2763a
|
@ -443,6 +443,8 @@ export class AddonModScormPrefetchHandler extends CoreCourseActivityPrefetchHand
|
||||||
this.syncProvider = this.injector.get(AddonModScormSyncProvider);
|
this.syncProvider = this.injector.get(AddonModScormSyncProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.syncProvider.syncScorm(module.instance, siteId);
|
return this.scormProvider.getScorm(courseId, module.id, module.url, false, siteId).then((scorm) => {
|
||||||
|
return this.syncProvider.syncScorm(scorm, siteId);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue