From 72d6a69413eb00cf254642745427240664462cb6 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Thu, 5 Jun 2025 09:31:02 +1000 Subject: [PATCH] If this doesn't work, I'm deleting the whole repo --- twitch-ad-countdown-timer/script.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/twitch-ad-countdown-timer/script.js b/twitch-ad-countdown-timer/script.js index c84a783..368397f 100644 --- a/twitch-ad-countdown-timer/script.js +++ b/twitch-ad-countdown-timer/script.js @@ -166,12 +166,11 @@ function TwitchUpcomingAd(data) { if (!upcomingAdWarningStartDelay) upcomingAdWarningStartDelay = warningMinute * 60 - warningSeconds; - else - return; // Start the countdown animation setTimeout(() => { - if (!upcomingAdWarningStartDelay) + console.debug('Upcomfing Ad Warning Countdown start...'); + if (upcomingAdWarningStartDelay) UpcomingAdWarning(warningSeconds); }, upcomingAdWarningStartDelay * 1000); } @@ -421,4 +420,6 @@ function SetConnectionStatus(connected) { statusContainer.style.transition = ""; statusContainer.style.opacity = 1; } -} \ No newline at end of file +} + +TwitchUpcomingAd() \ No newline at end of file