Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Use redirect instead of clicking link
Browse files Browse the repository at this point in the history
  • Loading branch information
the-codeboy committed Apr 27, 2024
1 parent f08a48e commit ac2ade1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/download.tera
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<script>
setTimeout(function() {
document.getElementById("download").click();
window.location.replace("{{ url }}");
document.querySelector("h1").textContent = "Download of file {{ name }} successful! This tab now will close automatically";
setTimeout(function() {
window.close();
Expand Down

0 comments on commit ac2ade1

Please sign in to comment.