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.