Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
1234567891011121314const systemDark = window.matchMedia("(prefers-color-scheme: dark)");
/** * @param {MediaQueryListEvent | MediaQueryList} mql */function applyDark(mql) { const isDark = mql.matches; document.documentElement.classList.toggle("wa-dark", isDark);}
systemDark.addEventListener("change", applyDark);
applyDark(systemDark);