Picture of Matt Leathes
Re: Checking if course is served in an LMS
by Matt Leathes - Monday, 14 October 2019, 9:10 AM

Yes, if the spoor extension is always going to be installed then you can check for the existence of the variable window.ISCOOKIELMS - if it's set to false, the course is being run from index.html; if set to true it's being run from scorm_test_harness.html; if it's undefined the course is being launched from an LMS.