merge with base branch

This commit is contained in:
sadorowo
2024-03-16 10:06:24 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ smoothScrollLinks.forEach(link => {
const switchTheme = document.getElementById('switch-theme');
const theme = localStorage.getItem('theme');
switchTheme.addEventListener('click', () => {
switchTheme?.addEventListener('click', () => {
if (theme === 'dark') {
localStorage.setItem('theme', 'light');
} else {