svg update on media change

This commit is contained in:
Mylloon 2024-11-06 16:42:45 +01:00
parent 856770c2ae
commit aed4fa2bff
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -165,3 +165,8 @@ window.addEventListener("load", () => {
svgDarkTheme();
}
});
// Is this working?
window
.matchMedia("(prefers-color-scheme: dark)")
.addEventListener("change", svgDarkTheme);