From b54c564151c8a93703d5c5b13cff5204c2519603 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 25 Apr 2021 11:37:37 +0200 Subject: [PATCH] Removed some unneeded code --- loader/app/loader/ScriptLoader.ts | 2 +- loader/app/loader/StyleLoader.ts | 2 +- loader/app/loader/loader.ts | 5 ++ .../images/favicon_teacup.png | Bin loader/index.ejs | 10 +-- shared/html/templates.html | 80 ------------------ shared/js/ui/frames/chat.ts | 2 +- web/app/ui/FaviconRenderer.tsx | 22 ++++- 8 files changed, 32 insertions(+), 91 deletions(-) rename shared/img/favicon/teacup.png => loader/images/favicon_teacup.png (100%) diff --git a/loader/app/loader/ScriptLoader.ts b/loader/app/loader/ScriptLoader.ts index 6271d7e2..6f336c5e 100644 --- a/loader/app/loader/ScriptLoader.ts +++ b/loader/app/loader/ScriptLoader.ts @@ -44,7 +44,7 @@ export function loadScript(url: SourcePath) : Promise { } scriptTag.src = config.baseUrl + url; - document.getElementById("scripts").appendChild(scriptTag); + document.body.appendChild(scriptTag); resourceRequest.markExecuting(); }); } diff --git a/loader/app/loader/StyleLoader.ts b/loader/app/loader/StyleLoader.ts index 3e0b1646..39824e9c 100644 --- a/loader/app/loader/StyleLoader.ts +++ b/loader/app/loader/StyleLoader.ts @@ -45,7 +45,7 @@ export function loadStyle(path: SourcePath) : Promise { resolve(); }; - document.getElementById("style").appendChild(linkTag); + document.head.appendChild(linkTag); resourceRequest.markExecuting(); }); } diff --git a/loader/app/loader/loader.ts b/loader/app/loader/loader.ts index 4e28f016..535f2df1 100644 --- a/loader/app/loader/loader.ts +++ b/loader/app/loader/loader.ts @@ -156,6 +156,11 @@ export async function execute(customLoadingAnimations: boolean) { return; } + /* Cleanup