From ff2ec9e51839817329d148b17c6d1f47856976b6 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Fri, 18 Oct 2024 12:54:02 -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 8381574..d06d3a7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -266,7 +266,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 b1af4ae503725bd0af6081cdd06984784835dfe2 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Fri, 18 Oct 2024 12:54:26 -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 31c6a67..7b95fa0 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-local/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-local/releases/tag/v1.2.20) ### 10/17/2024