Skip to content

Commit

Permalink
fix: supress songle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kino-ma committed Sep 18, 2022
1 parent 6abcb1e commit 982a9c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/script/songle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ let bpm = 100;
let hasFirst = true

window.onSongleAPIReady = (Songle) => {
try {
player =
new Songle.Player({
mediaElement: "#songle-yt"
Expand Down Expand Up @@ -41,4 +42,7 @@ window.onSongleAPIReady = (Songle) => {
)

player.useMedia("https://www.youtube.com/watch?v=6j7VwJ7sM_k")
} catch (e) {
/* FIXME */
}
}

1 comment on commit 982a9c4

@vercel
Copy link

@vercel vercel bot commented on 982a9c4 Sep 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.