Skip to content

Commit

Permalink
Merge pull request phuocng#237 from MelSumner/patch-1
Browse files Browse the repository at this point in the history
Fixes typo
  • Loading branch information
phuocng authored Jul 7, 2022
2 parents 4a37734 + c5ae788 commit dc6dd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/detect-the-dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It can be one of the following values:
- `dark`: User would like to see the page in the dark mode
- `no-preference`: The system doesn't know about the user preferences

By checking against this media query value, we can determine if the user prefers the drak mode or not:
By checking against this media query value, we can determine if the user prefers the dark mode or not:

```js
const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
Expand Down

0 comments on commit dc6dd51

Please sign in to comment.