From 6aa62ed534f29149aa50e969934afedb53802a26 Mon Sep 17 00:00:00 2001 From: MikeHughes-BIN Date: Mon, 15 Dec 2025 18:41:14 +0100 Subject: [PATCH] Enable download button functionality and improve error handling in file download --- electron/main/index.html | 3 +-- electron/main/script.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/electron/main/index.html b/electron/main/index.html index 27b6137..11cab72 100644 --- a/electron/main/index.html +++ b/electron/main/index.html @@ -147,8 +147,7 @@ + diff --git a/electron/main/script.js b/electron/main/script.js index d46d7b3..6500dbc 100644 --- a/electron/main/script.js +++ b/electron/main/script.js @@ -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); } }