Skip to content

Commit

Permalink
insert id
Browse files Browse the repository at this point in the history
  • Loading branch information
maboa committed Nov 28, 2023
1 parent 9c81733 commit 0c1f0aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/hyperaudio-lite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! (C) The Hyperaudio Project. MIT @license: en.wikipedia.org/wiki/MIT_License. */
/*! Version 2.1.6 */
/*! Version 2.1.7 */

'use strict';

Expand Down Expand Up @@ -183,7 +183,7 @@ function spotifyPlayer(instance) {

window.onSpotifyIframeApiReady = IFrameAPI => {

const element = document.getElementById('hyperplayer');
const element = document.getElementById(instance.player.id);

const extractEpisodeID = (url) => {
const match = url.match(/episode\/(.+)$/);
Expand Down Expand Up @@ -335,6 +335,9 @@ class HyperaudioLite {
this.parentElements = this.transcript.getElementsByTagName(this.parentTag);
this.player = document.getElementById(mediaElementId);

console.log(mediaElementId);
console.log(this.player);

// Grab the media source and type from the first section if it exists
// and add it to the media element.

Expand Down

0 comments on commit 0c1f0aa

Please sign in to comment.