Skip to content

Commit

Permalink
Prepend webriceContainer (#66)
Browse files Browse the repository at this point in the history
This way it'll always show up at the top of the parent element. Otherwise,
it's liable to show up as the last element like in the tiro page.
  • Loading branch information
judyfong authored Apr 20, 2022
1 parent ead0248 commit 2489197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class Reader {
player.id = 'webricePlayer';
container.appendChild(player);

parent.appendChild(container);
parent.prepend(container);
this.player = document.getElementById(player.id) as HTMLAudioElement;

this.player.addEventListener('play', () => {
Expand Down

0 comments on commit 2489197

Please sign in to comment.