add "none"
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user