diff --git a/frontend/src/contexts/SpotifyIframe.tsx b/frontend/src/contexts/SpotifyIframe.tsx index 25fae8e..3b3b83a 100644 --- a/frontend/src/contexts/SpotifyIframe.tsx +++ b/frontend/src/contexts/SpotifyIframe.tsx @@ -13,7 +13,7 @@ export const useSpotifyIframe = () => { document.body.appendChild(script); script.onload = () => { - window.onSpotifyIframeApiReady = (IFrameAPI) => { + (window as any).onSpotifyIframeApiReady = (IFrameAPI) => { const element = document.getElementById(elementId); const options = { width: 400,