show only filenames in downloads

This commit is contained in:
SpikeHD
2022-05-20 19:47:13 -07:00
parent c8a172443d
commit 2983345d1b
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ export default class DownloadSection extends React.Component<IProps, never> {
}
getFilenameFromPath() {
return this.props.downloadName.split('/').pop()
const name = this.props.downloadName.replace(/\\/g, '/')
return name.split('/').pop()
}
render() {