refacto Anchor proof extension

This commit is contained in:
OxSaitama 2023-10-19 11:34:38 +02:00
parent 1e8e5cf165
commit 6263d97553

View File

@ -347,7 +347,7 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
a.style.display = "none"; a.style.display = "none";
a.href = url; a.href = url;
// the filename you want // the filename you want
a.download = `anchoring_proof_${this.props.selectedFolder?.folder_number}_${this.props.selectedFolder?.name}.pdf`; a.download = `anchoring_proof_${this.props.selectedFolder?.folder_number}_${this.props.selectedFolder?.name}.zip`;
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
window.URL.revokeObjectURL(url); window.URL.revokeObjectURL(url);