From 44210691ee8444509ac466a362337af77f2bcd49 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Tue, 20 Jul 2021 01:30:23 +0200 Subject: Commit --- typescript/mainloader.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 typescript/mainloader.js (limited to 'typescript/mainloader.js') 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 -- cgit From d5a620cf09b835db2bccd99556525c90b458719f Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 5 Aug 2021 17:21:23 +0200 Subject: i18n for 21.08 --- typescript/mainloader.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'typescript/mainloader.js') diff --git a/typescript/mainloader.js b/typescript/mainloader.js index 6fee294..32c1144 100644 --- a/typescript/mainloader.js +++ b/typescript/mainloader.js @@ -1,10 +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) - } +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 -- cgit