Update download.php

pull/8/head
SuperDev 3 years ago committed by GitHub
parent a35eaace1f
commit de90a6f0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,12 +79,11 @@ const initTimer = () => {
return downloadBtn.innerHTML = `Your download will begin in <b>${timer}</b> seconds`;
}
clearInterval(initCounter);
location.href = fileLink;
window.open(fileLink);
downloadBtn.innerText = "Your file is downloading...";
setTimeout(() => {
downloadBtn.classList.replace("timer", "disable-timer");
downloadBtn.innerHTML = `<span class="icon material-symbols-rounded">vertical_align_bottom</span>
<span class="text">Download Again</span>`;
downloadBtn.innerHTML = `<span class="text">Download Again</span>`;
}, 3000);
}, 1000);
}

Loading…
Cancel
Save