fix nplayer url not working when protocol is included (#620)
This commit is contained in:
parent
26945f554e
commit
152380bd05
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ const VideoPreview: FC<{ file: OdFileObject }> = ({ file }) => {
|
|||
btnImage="/players/potplayer.png"
|
||||
/>
|
||||
<DownloadButton
|
||||
onClickCallback={() => window.open(`nplayer-http://${getBaseUrl()}${videoUrl}`)}
|
||||
onClickCallback={() => window.open(`nplayer-http://${window?.location.hostname ?? ""}${videoUrl}`)}
|
||||
btnText="nPlayer"
|
||||
btnImage="/players/nplayer.png"
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue