Skip to content

Commit

Permalink
Merge pull request #182 from hyperaudio/180-spotify-fix
Browse files Browse the repository at this point in the history
Dynamically insert player id into Spotify plugin
  • Loading branch information
maboa authored Nov 28, 2023
2 parents 9c81733 + e4559fc commit 800d525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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

0 comments on commit 800d525

Please sign in to comment.