jcputney / scorm-again

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

How can I access scormAPI file LMSInitialize() method on my index.html file #726

Closed pradeep023 closed 1 week ago

pradeep023 commented 1 week ago

Hi folks, Below code i used to trigger LMSInitialize() method on index.html file. But its throw Reference Error while executing html file... Thanks for advance!!

document.addEventListener("DOMContentLoaded", function() {
            const initialized = LMSInitialize();
            if (initialized) {
                console.log("SCORM API initialized successfully.");
            } else {
                console.error("Failed to initialize SCORM API.");
            }
        });
Capture
pradeep023 commented 1 week ago

Its not related with this Repo... Mistakenly posted here