Question for the JavaScript gurus

Storyline has a JavaScript global variable objLMS that I've have used to find the SCORM API. I've read of other Storyline methods elsewhere.

I have also used this script:

function findLMSAPI(win) {
"use strict";
if (win.hasOwnProperty("GetStudentID")) { return win;}
else if (win.parent === win) {return null;}
else {return findLMSAPI(win.parent);}
}

Is there any suggestion on the most solid or best way to find the SCORM API?

Asking for a friend.

Be the first to reply