src/components/WebPlayer.js
//Make sure spotify is mounted correctly
Make sure spotify is mounted correctly
Make sure spotify is mounted correctly
waitForSpotify() {
    return new Promise(resolve => {
      if ('Spotify' in window) {
        resolve();
      } else {
        window.onSpotifyWebPlaybackSDKReady = () => { resolve(); };
      }
    });
  }
waitForSpotify ( ) { return new Promise ( resolve => { if ( 'Spotify' in window ) { resolve ( ) ; } else { window . onSpotifyWebPlaybackSDKReady = ( ) => { resolve ( ) ; } ; } } ) ; }
Make sure spotify is mounted correctly
Make sure spotify is mounted correctly