79871 - scorm tried initializing twice

This commit is contained in:
2024-09-10 16:11:03 -04:00
parent 605f479663
commit b9d58c33e7
14 changed files with 11486 additions and 1723 deletions

4
dist/scorm-again.js vendored
View File

@@ -728,9 +728,7 @@ var BaseAPI = /*#__PURE__*/function () {
value: function initialize(callbackName, initializeMessage, terminationMessage) {
var returnValue = global_constants.SCORM_FALSE;
if (this.isInitialized()) {
this.throwSCORMError(_classPrivateFieldGet(this, _error_codes).INITIALIZED, initializeMessage);
} else if (this.isTerminated()) {
if (this.isTerminated()) {
this.throwSCORMError(_classPrivateFieldGet(this, _error_codes).TERMINATED, terminationMessage);
} else {
if (this.selfReportSessionTime) {