Merge pull request #433 from pdehaan/issue-429

Prevent download button from being clicked multiple times
This commit is contained in:
Danny Coates 2017-08-04 15:46:56 -07:00 committed by GitHub
commit 44ea0756ea

View File

@ -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();