jcputney / scorm-again

A modern SCORM JavaScript runtime library.
https://jcputney.github.io/scorm-again/
MIT License
211 stars 51 forks source link

No lmsCommitUrl set #677

Open arashster opened 1 year ago

arashster commented 1 year ago

I'm trying to use scorm-again but without setting an lmsCommitUrl.

What I'm trying to do is simply store the CMI data in localStorage and not Ajax the data to a server. However, what's happening is calls to Commit/LMSCommit return false unless there is an lmsCommitUrl specified.

Is there any way to have calls to Commit/LMSCommit return true if lmsCommitUrl is null/false/undefined? Furthermore, is it possible to have work like such `window.API_1484_11.on('Commit', function(cmi) {

});`

So that the cmi data is passed on Commit/LMSCommit. Currently, it passes nothing.