Skip to content

Commit

Permalink
Use path instead of full URL for player src
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 15, 2024
1 parent 06cd7e5 commit b3a852d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asciinema_web/controllers/recording_html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule AsciinemaWeb.RecordingHTML do
defdelegate username(user), to: UserHTML
defdelegate title(asciicast), to: Recordings

def player_src(asciicast), do: asciicast_file_url(asciicast)
def player_src(asciicast), do: ~p"/a/#{asciicast}" <> ".#{filename_ext(asciicast)}"

def player_opts(asciicast, opts) do
[
Expand Down

0 comments on commit b3a852d

Please sign in to comment.