Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(settings): load dark mode setting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Sep 18, 2020
1 parent 36cb5bd commit a339938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export class SettingsService {
if (this.settings.reduceMotion === undefined) {
this.settings.reduceMotion = false;
}
if (!this.settings.darkMode) {
this.settings.darkMode = true;
if (this.settings.darkMode === undefined) {
this.settings.darkMode = false;
}
return this.settings;
}
Expand Down

0 comments on commit a339938

Please sign in to comment.