Skip to content

Commit

Permalink
fix: get current mode in userColorScheme (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim authored Sep 25, 2021
1 parent 9eb461b commit 628a0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/ts/colorScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ThemeColorScheme {
document.documentElement.dataset.userColorScheme = 'light';
}

this.dispatchEvent(document.documentElement.dataset.scheme as colorScheme);
this.dispatchEvent(document.documentElement.dataset.userColorScheme as colorScheme);
}

private getSavedScheme(): colorScheme {
Expand Down

0 comments on commit 628a0be

Please sign in to comment.