Skip to content

Commit

Permalink
boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni committed Oct 13, 2024
1 parent e900f72 commit 3faa492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/ThemeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getLocalStorageItem, setLocalStorageItem } from './LocalStorageService'
* @static
* @returns flag representing is the dark theme selected
*/
export function getIsDarkMode() {
export function getIsDarkMode():boolean {
return getLocalStorageItem('isDarkMode') || false;
}

Expand All @@ -16,6 +16,6 @@ export function getIsDarkMode() {
* @static
* @param {boolean} isDark is dark mode selected flag
*/
export function setIsDarkMode(isDark) {
export function setIsDarkMode(isDark:boolean) {
setLocalStorageItem('isDarkMode', isDark);
}

0 comments on commit 3faa492

Please sign in to comment.