spotify player #15
@@ -13,7 +13,7 @@ export const useSpotifyIframe = () => {
|
|||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
|
|
||||||
script.onload = () => {
|
script.onload = () => {
|
||||||
window.onSpotifyIframeApiReady = (IFrameAPI) => {
|
(window as any).onSpotifyIframeApiReady = (IFrameAPI) => {
|
||||||
const element = document.getElementById(elementId);
|
const element = document.getElementById(elementId);
|
||||||
const options = {
|
const options = {
|
||||||
width: 400,
|
width: 400,
|
||||||
|
|||||||
Reference in New Issue
Block a user