Skip to content

Commit

Permalink
Merge branch 'hibbitts-design:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts authored Oct 18, 2024
2 parents 13f18f4 + e518e11 commit a3bb940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v1.2.21](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.21)
### XX/XX/2024

**Improved:**
* Use of window.matchMedia.addListener replaced with window.matchMedia.addEventListener

## [v1.2.20](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.20)
### 10/17/2024

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
embed.setAttribute('data-card-theme', 'light');
});
}
window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function (e) {
// console.log(`changed to ${e.matches ? "dark" : "light"} mode`);
// console.log(e.matches);
document.location.reload();
Expand Down

0 comments on commit a3bb940

Please sign in to comment.