Update html/layouts/error-video.ejs
This commit is contained in:
parent
b4623613c7
commit
cf30dc2e8f
@ -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...";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user