add "none"

This commit is contained in:
MLH
2024-12-17 00:27:29 +01:00
parent 6c6adcacc3
commit e34e2ef616

View File

@ -55,6 +55,9 @@ const themeConfigs = {
js: 'seasonals/spring.js',
containerClass: 'spring'
},
none: {
containerClass: 'none'
},
};
// determine current theme based on the current month
@ -132,6 +135,12 @@ function initializeTheme() {
console.log(`Selected theme: ${currentTheme}`);
if (currentTheme === 'none') {
console.log('No theme selected.');
removeSelf();
return;
}
const theme = themeConfigs[currentTheme];
if (!theme) {