add "none"
This commit is contained in:
@ -55,6 +55,9 @@ const themeConfigs = {
|
|||||||
js: 'seasonals/spring.js',
|
js: 'seasonals/spring.js',
|
||||||
containerClass: 'spring'
|
containerClass: 'spring'
|
||||||
},
|
},
|
||||||
|
none: {
|
||||||
|
containerClass: 'none'
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// determine current theme based on the current month
|
// determine current theme based on the current month
|
||||||
@ -132,6 +135,12 @@ function initializeTheme() {
|
|||||||
|
|
||||||
console.log(`Selected theme: ${currentTheme}`);
|
console.log(`Selected theme: ${currentTheme}`);
|
||||||
|
|
||||||
|
if (currentTheme === 'none') {
|
||||||
|
console.log('No theme selected.');
|
||||||
|
removeSelf();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const theme = themeConfigs[currentTheme];
|
const theme = themeConfigs[currentTheme];
|
||||||
|
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
|
Reference in New Issue
Block a user