openedx-scorm-xblock
openedx-scorm-xblock copied to clipboard
fix: Scorm iframe and API loading race condition
Description
Load the Scorm iframe's 'src' attribute after initializing the Scorm API instead of directly in the 'scormxblock.html' file because it can lead to a race condition where the Scorm content may load faster and try to access the Scorm API before it is loaded, thus giving an error.