Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Dec 8, 2023
1 parent b249031 commit 52a7644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/partials/dark-mode.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* @preserve Dark mode Init */
/*
* There are two color palettes on CSS for the data-theme: 'light' and 'dark'.
* Initially the script check if a theme is set in session storage and
* There are two colour palettes on CSS for the data-theme: 'light' and 'dark'.
* Initially the script checks if a theme is set in session storage and
* alternatively listens to a MediaQuery callback looking for "prefers-color-scheme: dark".
*/

const themeButton = {
'light': '<i class="fas fa-adjust" aria-hidden="true"></i>',
'dark': '<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'
'light': '<i class="fas fa-adjust" aria-hidden="true"></i><span class="navbar-label-with-icon"> Dark</span>',
'dark': '<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i><span class="navbar-label-with-icon"> Light</span>'
}

const currentTheme = () => localStorage.getItem('theme')
Expand Down

0 comments on commit 52a7644

Please sign in to comment.