79871 - scorm tried initializing twice
This commit is contained in:
@@ -113,9 +113,7 @@ export default class BaseAPI {
|
|||||||
terminationMessage?: String) {
|
terminationMessage?: String) {
|
||||||
let returnValue = global_constants.SCORM_FALSE;
|
let returnValue = global_constants.SCORM_FALSE;
|
||||||
|
|
||||||
if (this.isInitialized()) {
|
if (this.isTerminated()) {
|
||||||
this.throwSCORMError(this.#error_codes.INITIALIZED, initializeMessage);
|
|
||||||
} else if (this.isTerminated()) {
|
|
||||||
this.throwSCORMError(this.#error_codes.TERMINATED, terminationMessage);
|
this.throwSCORMError(this.#error_codes.TERMINATED, terminationMessage);
|
||||||
} else {
|
} else {
|
||||||
if (this.selfReportSessionTime) {
|
if (this.selfReportSessionTime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user