gabrieldoty / simplify-scorm

Scorm 1.2 Javascript API
MIT License
230 stars 77 forks source link

There is any possibilities to return an error ? #46

Open Gwe2B opened 1 year ago

Gwe2B commented 1 year ago

Hi, I am writting a simplified version of an LMS and I want to store the data send to the commit in a database. But in case there is an error I need to say it to the player/document/SCO (whatever you call it) and I have been searching through the source code without finding anything to do this because the callback function (in the processListeners function) return value is completely ignored and because of this if I try to raise an error through the throw new Exception or the throwSCORMErrorit will be ignored as well. Any way to do it without touching the source code ?