()
| 13864 | console.log('Server mode confirmed, constructing download URL'); |
| 13865 | // Construct download URL - use /api/download/ endpoint which handles zip entries |
| 13866 | const encodedPath = encodeURIComponent(filePath); |
| 13867 | const downloadUrl = `/api/download/${encodedPath}`; |
| 13868 | console.log('Download URL:', downloadUrl); |
| 13869 | |
| 13870 | // Try using direct link first (simpler and more reliable) |
| 13871 | // This works better when the server sets Content-Disposition header |
| 13872 | const link = document.createElement('a'); |
nothing calls this directly
no outgoing calls
no test coverage detected