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-07-26 07:16:16 -07:00
committed by GitHub
parent 7c35648520
commit 4eebaa16a3
4 changed files with 19 additions and 3 deletions

View File

@@ -1,12 +1,18 @@
const theme = {
load() {
if (window.location.pathname === '/mobile/') {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '/resources/styles/mobile.css';
document.head.appendChild(link);
}
const setTheme = cookie.get('minexlauncher.theme');
if (setTheme === null) {
theme.set('default');
} else if (setTheme !== 'default') {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '/resources/styles/' + setTheme + '.css';
link.href = `/resources/styles/${setTheme}.css`;
document.head.appendChild(link);
}
},