feat: make Docker container port configurable via PORT env var

fix: preserve original filename when downloading processed files
This commit is contained in:
alam00000 committed 2026-04-05 13:44:16 +05:30
1 parent 2f0d48c01b
commit bfe4e5b663
77 files changed
+127 -126

No files matched your search

+1 -3
View File
@@ -60,11 +60,9 @@ worker.onmessage = function (e) {
} else if (data.status === 'success' && data.modifiedPDF !== undefined) {
hideLoader();
const originalName =
pageState.file?.name.replace(/\.pdf$/i, '') || 'document';
downloadFile(
new Blob([new Uint8Array(data.modifiedPDF)], { type: 'application/pdf' }),
`${originalName}_edited.pdf`
pageState.file?.name || 'document.pdf'
);
showAlert(