Update alchem.js

This commit is contained in:
lllllllllwith10ls 2025-07-05 18:50:41 -05:00
parent 73a500e27e
commit b4db3881f0
1 changed files with 7 additions and 2 deletions

View File

@ -360,8 +360,13 @@ window.addEventListener("load",function(){
console.log(string);
});*/
}
if(chemMod) {
chemMod.addEventListener("load",loadAlchem);
if (chemMod) {
if (chemMod.readyState === 'complete') {
loadAlchem();
} else {
chemMod.addEventListener("load", loadAlchem);
}
} else {
loadAlchem();
}