1 2 3 4 5 6 7 8 9 10
window.addEventListener("load", () => { 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) } })