From de90a6f0ba8759ac394ce74fb72e8f0f39cc968b Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 12:43:09 -0600 Subject: [PATCH] Update download.php --- download.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/download.php b/download.php index f504cc0..e789874 100644 --- a/download.php +++ b/download.php @@ -79,12 +79,11 @@ const initTimer = () => { return downloadBtn.innerHTML = `Your download will begin in ${timer} seconds`; } clearInterval(initCounter); - location.href = fileLink; + window.open(fileLink); downloadBtn.innerText = "Your file is downloading..."; setTimeout(() => { downloadBtn.classList.replace("timer", "disable-timer"); - downloadBtn.innerHTML = `vertical_align_bottom - Download Again`; + downloadBtn.innerHTML = `Download Again`; }, 3000); }, 1000); }