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;
@@ -3470,7 +3475,7 @@ function __disposeResources(env) {
3470
3475
  var __webpack_exports__ = {};
3471
3476
  __webpack_require__.r(__webpack_exports__);
3472
3477
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3473
- /* harmony export */ Scorm12Impl: function() { return /* binding */ Scorm12Impl; }
3478
+ /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12Impl; }
3474
3479
  /* harmony export */ });
3475
3480
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(635);
3476
3481
  /* harmony import */ var _cmi_scorm12_cmi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(989);
@@ -3768,7 +3773,7 @@ var Scorm12Impl = (function (_super) {
3768
3773
  }(_BaseAPI__WEBPACK_IMPORTED_MODULE_8__["default"]));
3769
3774
 
3770
3775
 
3771
- var __webpack_exports__Scorm12Impl = __webpack_exports__.Scorm12Impl;
3772
- export { __webpack_exports__Scorm12Impl as Scorm12Impl };
3776
+ var __webpack_exports__Scorm12API = __webpack_exports__.Scorm12API;
3777
+ export { __webpack_exports__Scorm12API as Scorm12API };
3773
3778
 
3774
3779
  //# sourceMappingURL=scorm12.js.map