I don't even know anymore lol

This commit is contained in:
nuttylmao
2025-06-05 10:06:58 +10:00
parent af3321797f
commit 4a13a2a17c
+7 -1
View File
@@ -160,11 +160,17 @@ function TwitchAdRun(data) {
} }
function TwitchUpcomingAd(data) { function TwitchUpcomingAd(data) {
if (upcomingAdWarningStartDelay != null)
{
console.debug('Countdown already started, skipping...');
return;
}
// Twitch does not give us ANY data to work with, so we will just // Twitch does not give us ANY data to work with, so we will just
// assume each UpcomingAd warning is 5 minutes // assume each UpcomingAd warning is 5 minutes
const warningMinute = 5; const warningMinute = 5;
if (!upcomingAdWarningStartDelay) //if (!upcomingAdWarningStartDelay)
upcomingAdWarningStartDelay = warningMinute * 60 - warningSeconds; upcomingAdWarningStartDelay = warningMinute * 60 - warningSeconds;
// Start the countdown animation // Start the countdown animation