pub / tw2html

Checks online status of streams on twitch.tv and lets you watch them
git clone https://src.jayvii.de/pub/tw2html.git
Home | Log | Files | Exports | Refs | README | RSS

commit 6624b105a58b2e5bb09935a7a7bd42ddcc1914f9
parent 886e30cedb79ef50998c8132822c2a615432e633
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sun, 12 Oct 2025 16:10:59 +0200

fix: correctly check for dark theme preference

Diffstat:
Massets/js/twitch.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assets/js/twitch.js b/assets/js/twitch.js @@ -189,7 +189,7 @@ function tw2html_toggle_chat(stream) { window.location.hostname; // If dark mode is used, apply it to the chat as well - if (window.matchMedia('(prefers-color-scheme: dark)')) { + if (window.matchMedia('(prefers-color-scheme: dark)').matches) { chat.src = chat.src + "&darkpopout"; }