Consistent parallax size; Debugging /null requests, is Spotify the culprit?

This commit is contained in:
James Barnsley
2018-10-31 21:48:32 +13:00
parent fc0bf76f0a
commit 192b1bed88
11 changed files with 10374 additions and 13607 deletions

View File

@ -28,6 +28,10 @@ const request = (dispatch, getState, endpoint, method = 'GET', data = false) =>
.then(
response => {
if (!endpoint || enpoint == ""){
console.error("No Spotify endpoint provided????", endpoint, method, data);
}
// prepend the API baseurl, unless the endpoint already has it (ie pagination requests)
var url = 'https://api.spotify.com/v1/'+endpoint
if (endpoint.startsWith('https://api.spotify.com/')){