Update alchem.js
This commit is contained in:
parent
73a500e27e
commit
b4db3881f0
|
|
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue