Skip to content

Commit aba5b9d

Browse files
committed
Minor update to how lmsconnected resolves. Was passing 'true' and 'false' vs true and false. Did a more explicit check on the value during initialize()
1 parent ff72efb commit aba5b9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QUnit-Tests/js/scorm/SCOBot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ function SCOBot(options) {
115115
function initSCO() {
116116
lmsconnected = scorm.initialize();
117117
scorm.debug(settings.prefix + ": SCO Loaded from window.onload " + lmsconnected, 4);
118-
if (lmsconnected) {
118+
if (lmsconnected === 'true') {
119119
self.start(); // Things you'd do like getting mode, suspend data
120120
Utl.triggerEvent(self, "load");
121+
} else {
122+
scorm.debug(settings.prefix + "Sorry, I could not locate an LMS Runtime API.");
121123
}
122124
return lmsconnected;
123125
}

0 commit comments

Comments
 (0)