scorm-again 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -727,6 +727,11 @@ var BaseAPI = (function () {
727
727
  };
728
728
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
729
729
  if (CMIElement === void 0) { CMIElement = ""; }
730
+ if ((!CMIElement || CMIElement === "") &&
731
+ !Object.hasOwnProperty.call(json, "cmi") &&
732
+ !Object.hasOwnProperty.call(json, "adl")) {
733
+ CMIElement = "cmi";
734
+ }
730
735
  if (!this.isNotInitialized()) {
731
736
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
732
737
  return;
@@ -2314,7 +2319,7 @@ __webpack_require__.r(__webpack_exports__);
2314
2319
 
2315
2320
  // EXPORTS
2316
2321
  __webpack_require__.d(__webpack_exports__, {
2317
- Scorm2004Impl: function() { return /* binding */ Scorm2004Impl; }
2322
+ Scorm2004API: function() { return /* binding */ Scorm2004Impl; }
2318
2323
  });
2319
2324
 
2320
2325
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -4876,7 +4881,7 @@ var Scorm2004Impl = (function (_super) {
4876
4881
  }(BaseAPI["default"]));
4877
4882
 
4878
4883
 
4879
- var __webpack_exports__Scorm2004Impl = __webpack_exports__.Scorm2004Impl;
4880
- export { __webpack_exports__Scorm2004Impl as Scorm2004Impl };
4884
+ var __webpack_exports__Scorm2004API = __webpack_exports__.Scorm2004API;
4885
+ export { __webpack_exports__Scorm2004API as Scorm2004API };
4881
4886
 
4882
4887
  //# sourceMappingURL=scorm2004.js.map