From 982a9c4be5cd07771c866825ca4debb5e02ca7dd Mon Sep 17 00:00:00 2001 From: kino-ma Date: Sun, 18 Sep 2022 17:10:01 +0900 Subject: [PATCH] fix: supress songle errors --- public/script/songle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/script/songle.js b/public/script/songle.js index 9b5f749..58dd79b 100644 --- a/public/script/songle.js +++ b/public/script/songle.js @@ -3,6 +3,7 @@ let bpm = 100; let hasFirst = true window.onSongleAPIReady = (Songle) => { + try { player = new Songle.Player({ mediaElement: "#songle-yt" @@ -41,4 +42,7 @@ window.onSongleAPIReady = (Songle) => { ) player.useMedia("https://www.youtube.com/watch?v=6j7VwJ7sM_k") + } catch (e) { + /* FIXME */ + } }