mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-26 10:05:10 +00:00
Dev (#28)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user