From 2fcdada6864751ec708ace9ccd8c28d6d99aab06 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Aug 2021 16:47:40 +0200 Subject: New loading screen --- typescript/mainloader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'typescript/mainloader.js') 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 -- cgit