aboutsummaryrefslogtreecommitdiff
path: root/typescript/mainloader.js
blob: 317c95af7ea21f8ffd365d5b4819e67e538de2e5 (plain)
1
2
3
4
5
6
7
8
9
10
if (location.hash === "#ready") {
    files = require('@electron/remote').getCurrentWindow().modsfiles;
    global.HTML = window;

    for (file of files) {
        var script = document.createElement('script');
        script.src = "file://" + file.replaceAll("\\", "/");
        document.head.appendChild(script)
    }
}