svg update on media change
This commit is contained in:
parent
856770c2ae
commit
aed4fa2bff
1 changed files with 5 additions and 0 deletions
|
@ -165,3 +165,8 @@ window.addEventListener("load", () => {
|
||||||
svgDarkTheme();
|
svgDarkTheme();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Is this working?
|
||||||
|
window
|
||||||
|
.matchMedia("(prefers-color-scheme: dark)")
|
||||||
|
.addEventListener("change", svgDarkTheme);
|
||||||
|
|
Loading…
Reference in a new issue