Skip to content

Commit

Permalink
clean up bunny.net testing
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus committed Jun 14, 2024
1 parent 315222d commit 15e9e41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/video-on-demand/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ export class VideoOnDemand extends HTMLElement {
connectedCallback() {
const vod = this.getAttribute('vod')
if (!vod) throw new Error('Attribute "vod" is required')
const vodUrl = window.sessionStorage.getItem('bunny')
? `https://vod-limulus-net.b-cdn.net/${vod}`
: `https://vod.limulus.net/${vod}`
const vodUrl = `https://vod.limulus.net/${vod}`

const videoEl = this.shadowRoot!.querySelector<HTMLVideoElement>('video')!
videoEl.setAttribute('poster', `${vodUrl}/poster.jpeg`)
Expand Down

0 comments on commit 15e9e41

Please sign in to comment.