Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
fix nplayer url not working when protocol is included (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx authored Apr 26, 2022
1 parent 26945f5 commit 152380b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/previews/VideoPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
Expand Down

1 comment on commit 152380b

@vercel
Copy link

@vercel vercel bot commented on 152380b Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.