diff --git a/internal/web/index.html b/internal/web/index.html
index d209245..90e9db8 100644
--- a/internal/web/index.html
+++ b/internal/web/index.html
@@ -1611,8 +1611,14 @@
}
async function shareFile(hash) {
+ console.log('shareFile called with hash:', hash);
+ console.log('userFiles array:', userFiles);
const file = userFiles.find(f => f.hash === hash);
- if (!file) return;
+ console.log('Found file:', file);
+ if (!file) {
+ console.error('File not found in userFiles array');
+ return;
+ }
const baseUrl = window.location.origin;
const links = {