aboutsummaryrefslogtreecommitdiff
path: root/typescript
diff options
context:
space:
mode:
Diffstat (limited to 'typescript')
-rw-r--r--typescript/mainloader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/typescript/mainloader.js b/typescript/mainloader.js
index 32c1144..317c95a 100644
--- a/typescript/mainloader.js
+++ b/typescript/mainloader.js
@@ -1,4 +1,4 @@
-window.addEventListener("load", () => {
+if (location.hash === "#ready") {
files = require('@electron/remote').getCurrentWindow().modsfiles;
global.HTML = window;
@@ -7,4 +7,4 @@ window.addEventListener("load", () => {
script.src = "file://" + file.replaceAll("\\", "/");
document.head.appendChild(script)
}
-}) \ No newline at end of file
+} \ No newline at end of file