mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 21:22:35 +01:00
Prevent download button from being clicked multiple times
This commit is contained in:
parent
80db158ee3
commit
2f9372e8e0
@ -42,6 +42,9 @@ $(document).ready(function() {
|
||||
});
|
||||
$('#download-btn').click(download);
|
||||
function download() {
|
||||
// Disable the download button to avoid accidental double clicks.
|
||||
$('#download-btn').attr('disabled', 'disabled');
|
||||
|
||||
storage.totalDownloads += 1;
|
||||
|
||||
const fileReceiver = new FileReceiver();
|
||||
|
Loading…
Reference in New Issue
Block a user