mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
I don't even know anymore lol
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user