diff --git a/download.php b/download.php index fb156df..54d9fb6 100644 --- a/download.php +++ b/download.php @@ -60,9 +60,10 @@ if(isset($_POST['submit'])){ + const downloadBtn = document.querySelector(".download-btn"); -const fileLink = ""; +const fileLink = "' . $fileURL .'"; const initTimer = () => { if(downloadBtn.classList.contains("disable-timer")) { return location.href = fileLink; @@ -86,5 +87,5 @@ const initTimer = () => { }, 1000); } downloadBtn.addEventListener("click", initTimer); - + '; ?>