Actually read theme from config

This commit is contained in:
Evan Brierton 2021-11-29 20:31:40 +00:00
parent 5d5d1bc3c1
commit eb87c41128
No known key found for this signature in database
GPG key ID: EEB49EB91D2A0E70

View file

@ -518,6 +518,7 @@ Dribbblish.on("ready", () => {
setInterval(checkDarkLightMode, 60000);
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", e => {
const theme = Dribbblish.config.get("theme");
if (theme === "system") toggleDark(e.matches);
});