MineXLauncher
diff --git a/public/mods/mods/index.html b/public/mods/mods/index.html
index 94485cd..92d58dd 100644
--- a/public/mods/mods/index.html
+++ b/public/mods/mods/index.html
@@ -6,11 +6,11 @@
MineXLauncher
-
+
-
+
diff --git a/public/mods/resourcepacks/index.html b/public/mods/resourcepacks/index.html
index 334baaa..201d096 100644
--- a/public/mods/resourcepacks/index.html
+++ b/public/mods/resourcepacks/index.html
@@ -6,11 +6,11 @@
MineXLauncher
-
+
-
+
diff --git a/public/offline.html b/public/offline.html
index ccaf436..e69121d 100644
--- a/public/offline.html
+++ b/public/offline.html
@@ -6,12 +6,12 @@
MineXLauncher
-
+
-
+
diff --git a/public/servers/index.html b/public/servers/index.html
index 530a54a..1cbd842 100644
--- a/public/servers/index.html
+++ b/public/servers/index.html
@@ -6,11 +6,11 @@
MineXLauncher
-
+
-
+
diff --git a/public/settings/index.html b/public/settings/index.html
index a48e50a..10001ef 100644
--- a/public/settings/index.html
+++ b/public/settings/index.html
@@ -6,11 +6,11 @@
MineXLauncher
-
+
-
+
diff --git a/public/updates/index.html b/public/updates/index.html
index 44a668b..ba863fd 100644
--- a/public/updates/index.html
+++ b/public/updates/index.html
@@ -6,11 +6,11 @@
MineXLauncher
-
+
-
+
diff --git a/public/welcome/index.html b/public/welcome/index.html
index 8bea348..cc3bcb9 100644
--- a/public/welcome/index.html
+++ b/public/welcome/index.html
@@ -6,12 +6,12 @@
MineXLauncher
-
+
-
+
MineXLauncher
diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts
index 92c75f0..d5649d6 100644
--- a/src/resources/scripts/main.ts
+++ b/src/resources/scripts/main.ts
@@ -369,14 +369,7 @@ if (window.location.pathname === '/') {
if (iframe.contentWindow) iframe.contentWindow.installPwaEvent = event;
});
} else {
- document.addEventListener('DOMContentLoaded', () => {
- const themeElement = document.getElementById('theme') as HTMLLinkElement;
- if (themeElement) {
- document.documentElement.style.display = 'none';
- themeElement.onload = () => (document.documentElement.style.display = '');
- themeElement.href = `/resources/styles/themes/${storage.local.get('theme') ?? 'default'}.css`;
- }
- });
+ theme.load();
document.addEventListener('DOMContentLoaded', async () => {
const profileName = document.getElementById('profile-name');