1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-12-04 13:51:31 +00:00
The-Modding-Tree/js/technical/loader.js

10 lines
282 B
JavaScript
Raw Normal View History

2021-06-11 20:22:56 +00:00
// Load files
for (file in modInfo.modFiles) {
let script = document.createElement("script");
script.setAttribute("src", "js/" + modInfo.modFiles[file]);
script.setAttribute("async", "false");
document.head.insertBefore(script, document.getElementById("temp"));
}