Enable download button functionality and improve error handling in file download

This commit is contained in:
MikeHughes-BIN
2025-12-15 18:41:14 +01:00
parent cd474d7101
commit 6aa62ed534
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -147,8 +147,7 @@
</div>
<div class="step" id="step6" style="display:none;">
<button class="download-btn" id="downloadButton" disabled>Download</button>
</div>
<button class="download-btn" id="downloadButton" onclick="fileDownload()">Download</button>
</div>
<button id ="nextBtn" class="navBtn">&rarr;</button>
+3 -3
View File
@@ -328,10 +328,10 @@ function sendSpeakerPackages(){
}
}
function fileDownload(){
function fileDownload() {
try {
window.file_download.fileDownload();
window.download.file_download();
} catch (error) {
console.error("Download failed:", error);
}
}