diff --git a/components/Player.js b/components/Player.js index d3370802..c85b30a0 100644 --- a/components/Player.js +++ b/components/Player.js @@ -12,7 +12,7 @@ const Player = () => { const meting = JSON.parse(BLOG.MUSIC_PLAYER_METING) React.useEffect(() => { - if (!meting) { + if (!meting && window.APlayer) { setPlayer(new window.APlayer({ container: ref.current, fixed: true,