Skip to content

Commit

Permalink
fix 469f926
Browse files Browse the repository at this point in the history
  • Loading branch information
himan7991 committed Feb 27, 2024
1 parent 2c6cf87 commit 307c30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Header() {
document.body.classList.remove('dark', 'light')
document.body.classList.add(_theme)
if (document.querySelector("meta[name='theme-color']")) {
document.querySelector("meta[name='theme-color']")!.setAttribute('content', theme === 'light' ? 'rgb(240, 240, 240)' : 'rgb(26, 26, 26)')
document.querySelector("meta[name='theme-color']")!.setAttribute('content', _theme === 'light' ? 'rgb(240, 240, 240)' : 'rgb(26, 26, 26)')
}
localStorage.setItem('theme', _theme)
setTheme(_theme)
Expand Down

0 comments on commit 307c30e

Please sign in to comment.