1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-09-07 12:06:26 -07:00
parent c31f52d1e8
commit 29752483ae
24 changed files with 41 additions and 104 deletions

View File

@@ -440,8 +440,8 @@ if (window.location.pathname === '/') {
theme.load();
document.addEventListener('DOMContentLoaded', async () => {
const profileName = document.querySelector('.profile span');
const titleBarText = document.querySelector('.title-bar span');
const profileName = document.querySelector('.username');
const titleBarText = document.querySelector('.title-bar');
const lastVersion = storage.local.get('lastVersion');
const updateData = (await (await fetch('/resources/data/main.json')).json()).updates;
@@ -483,7 +483,7 @@ if (window.location.pathname === '/') {
if (window.location.pathname === '/settings/') {
document.addEventListener('DOMContentLoaded', async () => {
const profileName = document.querySelector('.profile span');
const profileName = document.querySelector('.username');
const usernameInput = document.querySelector('#username-input') as HTMLInputElement | null;
const themeSelect = document.querySelector('#theme-select') as HTMLSelectElement | null;
const offlineCheckbox = document.querySelector('#offline-checkbox') as HTMLInputElement | null;