fix(ui/panel_files): download url contains comma when port is 80/443

This commit is contained in:
hexxa 2022-07-21 20:03:41 +08:00 committed by Hexxa
parent 2a16b877a2
commit 28b7113d27

View file

@ -576,7 +576,7 @@ export class FilesPanel extends React.Component<Props, State, {}> {
</div> </div>
); );
const absDownloadURL = `${document.location.protocol}//${document.location.hostname}:${document.location.port}${downloadPath}`; const absDownloadURL = `${document.location.protocol}//${document.location.host}${downloadPath}`;
const pathTitle = this.props.msg.pkg.get("item.downloadURL"); const pathTitle = this.props.msg.pkg.get("item.downloadURL");
const modTimeTitle = this.props.msg.pkg.get("item.modTime"); const modTimeTitle = this.props.msg.pkg.get("item.modTime");
const sizeTitle = this.props.msg.pkg.get("item.size"); const sizeTitle = this.props.msg.pkg.get("item.size");