Skip to content

Commit

Permalink
autoplay by params back to origin
Browse files Browse the repository at this point in the history
  • Loading branch information
heyextra committed Oct 23, 2024
1 parent fa919ee commit f85edbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/player/_player.erb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@

<!-- Audio Element -->
<audio data-audio-player-target="audio"
data-ap="true"
<%= params[:t] ? "data-ap=true" : "" %>
src="<%= track.mp3_audio.url %>"
data-track-id="<%= track.slug %>"
id="audioElement">
Expand Down

0 comments on commit f85edbd

Please sign in to comment.