From 605f479663f86799cb4bdfbc21ee19a9414fd52c Mon Sep 17 00:00:00 2001 From: Maxime Duchene-Savard Date: Tue, 10 Sep 2024 16:00:56 -0400 Subject: [PATCH] 79871 - scorm tried initializing twice --- src/BaseAPI.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BaseAPI.js b/src/BaseAPI.js index 596adb7..469b14e 100644 --- a/src/BaseAPI.js +++ b/src/BaseAPI.js @@ -113,9 +113,7 @@ export default class BaseAPI { terminationMessage?: String) { let returnValue = global_constants.SCORM_FALSE; - if (this.isInitialized()) { - this.throwSCORMError(this.#error_codes.INITIALIZED, initializeMessage); - } else if (this.isTerminated()) { + if (this.isTerminated()) { this.throwSCORMError(this.#error_codes.TERMINATED, terminationMessage); } else { if (this.selfReportSessionTime) {