Skip to content

Commit

Permalink
update r4-share[player-origin] to player.radio4000.com/v2/
Browse files Browse the repository at this point in the history
  • Loading branch information
ug.rp committed Apr 20, 2024
1 parent 8fa76c1 commit d6932cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/r4-share.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ templateTrack.innerHTML = `

export default class R4ChannelShare extends HTMLElement {
static get observedAttributes() {
return ['origin', 'api-origin', 'icon-origin', 'slug', 'track-id']
return ['origin', 'player-origin', 'icon-origin', 'slug', 'track-id']
}

/* some attributes, that can be used to fetch model data,
Expand Down Expand Up @@ -64,8 +64,8 @@ export default class R4ChannelShare extends HTMLElement {
}

/* the link to the r4 api */
get apiOrigin() {
return this.getAttribute('api-origin') || 'https://api.radio4000.com'
get playerOrigin() {
return this.getAttribute('player-origin') || 'https://player.radio4000.com/v2'
}

/* the link to the image icon src on the r4 assets domain */
Expand All @@ -75,7 +75,7 @@ export default class R4ChannelShare extends HTMLElement {

/* generated HTML markup for an embedable iframe */
get iframe() {
return `<iframe src="${this.apiOrigin}/embed?slug=${this.slug}" width="320" height="500" frameborder="0"></iframe>`
return `<iframe src="${this.playerOrigin}/?slug=${this.slug}" width="320" height="500" frameborder="0"></iframe>`
}

/* generated HTML icon img + anchor, for and embedable link to channel */
Expand Down

0 comments on commit d6932cd

Please sign in to comment.