Skip to content

Commit 642587b

Browse files
Fix
1 parent bc744b7 commit 642587b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/public/js/transports.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ function createTransportScripts() {
1010
libcurlScript.src = 'libcurl/index.cjs';
1111
//libcurlScript.defer = true;
1212
document.body.appendChild(libcurlScript);
13-
//wait for the scripts to load
14-
epoxyScript.onload = () => {
15-
libcurlScript.onload = () => {
16-
console.log('Transport Scripts Loaded');
13+
//wait for the scripts to be loaded
14+
const checkScripts = setInterval(() => {
15+
if (typeof EpxMod !== 'undefined' && typeof CurlMod !== 'undefined') {
16+
clearInterval(checkScripts);
1717
resolve();
1818
}
19-
}
19+
}, 100);
2020
});
2121
}
2222

0 commit comments

Comments
 (0)