From fe50bd41124f3a69c06ee453578571be7e98d719 Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 12:17:17 -0600 Subject: [PATCH] Update download.php --- download.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); - + '; ?>