diff --git a/static/js/cours.js b/static/js/cours.js index 7da4a7e..e4ebff3 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -165,3 +165,8 @@ window.addEventListener("load", () => { svgDarkTheme(); } }); + +// Is this working? +window + .matchMedia("(prefers-color-scheme: dark)") + .addEventListener("change", svgDarkTheme);