Skip to content

Commit

Permalink
Merge pull request #14 from heyextra/double-player-bug
Browse files Browse the repository at this point in the history
Double player bug
  • Loading branch information
michelson authored Nov 3, 2024
2 parents f54e8a6 + f85edbd commit 8ca833f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/views/player/_player.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= turbo_frame_tag "player-frame" do %>

<div id="main-player"
data-controller="audio-player"
phx-hook="PlayerInitiator"
Expand Down Expand Up @@ -214,12 +214,12 @@

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

</div>
<% end %>

5 changes: 4 additions & 1 deletion app/views/player/show.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<%= turbo_frame_tag "player-frame" do %>
<%= render "player", track: @track, slideover:nil %>
<% end %>

<%= render "player", track: @track, slideover:nil %>

0 comments on commit 8ca833f

Please sign in to comment.