diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/matt-chat/index.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/html/matt-chat/index.html b/html/matt-chat/index.html index 182e323..c76b6c6 100644 --- a/html/matt-chat/index.html +++ b/html/matt-chat/index.html @@ -772,6 +772,20 @@ Available commands:\n // Add the new theme class document.body.classList.add(`theme-${themeName}`); + // Update meta theme-color + const metaThemeColor = document.querySelector('meta[name="theme-color"]'); + if (metaThemeColor) { + switch(themeName) { + case 'molly-millions': + metaThemeColor.setAttribute('content', '#00ff00'); + break; + case 'professional': + default: + metaThemeColor.setAttribute('content', '#007BFF'); + break; + } + } + // Save to localStorage localStorage.setItem('selectedTheme', themeName); |