From e34e2ef616a4821d57ec65810cfcb0f02e3d4bed Mon Sep 17 00:00:00 2001 From: CodeDevMLH Date: Tue, 17 Dec 2024 00:27:29 +0100 Subject: [PATCH] add "none" --- seasonals.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/seasonals.js b/seasonals.js index 3874e6e..7bb933b 100644 --- a/seasonals.js +++ b/seasonals.js @@ -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) {