Update html/layouts/error-video.ejs

This commit is contained in:
ashley 2025-08-18 00:39:46 +02:00
parent b4623613c7
commit cf30dc2e8f

View File

@ -93,12 +93,12 @@
reloadCount++; reloadCount++;
localStorage.setItem('reloadCount', reloadCount); localStorage.setItem('reloadCount', reloadCount);
let seconds = reloadCount > 5 ? 30 : 10; let seconds = reloadCount > 8 ? 30 : 10;
function updateCountdown() { function updateCountdown() {
const el = document.getElementById('countdown'); const el = document.getElementById('countdown');
if (el) { if (el) {
if (reloadCount > 5) { if (reloadCount > 8) {
document.querySelector('.error p').textContent = "This is taking so long..."; document.querySelector('.error p').textContent = "This is taking so long...";
} }
el.textContent = "Trying again in " + seconds + " seconds..."; el.textContent = "Trying again in " + seconds + " seconds...";