From b720b90df9e1435ad6ed375141bc26c88bfec381 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Fri, 18 Oct 2024 12:54:08 -0700 Subject: [PATCH 1/2] Use of window.matchMedia.addListener replaced with window.matchMedia.addEventListener. --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 3fe764a..da1b4fa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -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(); From e518e11e8bc8df30a93508140d62eefef84a482b Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Fri, 18 Oct 2024 12:54:32 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e8a8dd..07c0b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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