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.
package/dist/scorm2004.js CHANGED
@@ -729,6 +729,11 @@ var BaseAPI = (function () {
729
729
  };
730
730
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
731
731
  if (CMIElement === void 0) { CMIElement = ""; }
732
+ if ((!CMIElement || CMIElement === "") &&
733
+ !Object.hasOwnProperty.call(json, "cmi") &&
734
+ !Object.hasOwnProperty.call(json, "adl")) {
735
+ CMIElement = "cmi";
736
+ }
732
737
  if (!this.isNotInitialized()) {
733
738
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
734
739
  return;
@@ -2316,7 +2321,7 @@ __webpack_require__.r(__webpack_exports__);
2316
2321
 
2317
2322
  // EXPORTS
2318
2323
  __webpack_require__.d(__webpack_exports__, {
2319
- Scorm2004Impl: function() { return /* binding */ Scorm2004Impl; }
2324
+ Scorm2004API: function() { return /* binding */ Scorm2004Impl; }
2320
2325
  });
2321
2326
 
2322
2327
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -4878,7 +4883,7 @@ var Scorm2004Impl = (function (_super) {
4878
4883
  }(BaseAPI["default"]));
4879
4884
 
4880
4885
 
4881
- var __webpack_export_target__ = this;
4886
+ var __webpack_export_target__ = window;
4882
4887
  for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
4883
4888
  if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
4884
4889
  /******/ })()