mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
fix missing html background change on theme toggle
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -84,8 +84,10 @@ const applyThemeToHTML = (mode) => {
|
||||
const html = document.documentElement;
|
||||
if (mode === modeDark) {
|
||||
html.classList.add('dark');
|
||||
html.style.backgroundColor = '#111827';
|
||||
} else {
|
||||
html.classList.remove('dark');
|
||||
html.style.removeProperty('background-color');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user