aboutsummaryrefslogtreecommitdiff
path: root/typescript/mainloader.js
diff options
context:
space:
mode:
Diffstat (limited to 'typescript/mainloader.js')
-rw-r--r--typescript/mainloader.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/typescript/mainloader.js b/typescript/mainloader.js
new file mode 100644
index 0000000..6fee294
--- /dev/null
+++ b/typescript/mainloader.js
@@ -0,0 +1,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)
+ }
+}) \ No newline at end of file