Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Apr 15, 2024
1 parent bc744b7 commit 642587b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/public/js/transports.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function createTransportScripts() {
libcurlScript.src = 'libcurl/index.cjs';
//libcurlScript.defer = true;
document.body.appendChild(libcurlScript);
//wait for the scripts to load
epoxyScript.onload = () => {
libcurlScript.onload = () => {
console.log('Transport Scripts Loaded');
//wait for the scripts to be loaded
const checkScripts = setInterval(() => {
if (typeof EpxMod !== 'undefined' && typeof CurlMod !== 'undefined') {
clearInterval(checkScripts);
resolve();
}
}
}, 100);
});
}

Expand Down

0 comments on commit 642587b

Please sign in to comment.