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

@ -47,7 +47,7 @@ export default class Parallax extends React.Component{
}
render(){
var class_name = "parallax";
var class_name = "parallax preserve-3d";
if (this.props.blur){
class_name += " parallax--blur";
}
@ -62,8 +62,10 @@ export default class Parallax extends React.Component{
return (
<div className={class_name}>
<div className="parallax__image" style={style}></div>
<div className="parallax__overlay"></div>
<div className="parallax__inner preserve-3d">
<div className="parallax__image" style={style}></div>
<div className="parallax__overlay"></div>
</div>
</div>
);
}

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/')){

View File

@ -200,7 +200,7 @@ class Playlist extends React.Component{
}
return (
<div className="view playlist-view content-wrapper">
<div className="view playlist-view content-wrapper preserve-3d">
<Parallax image={playlist.images ? playlist.images.huge : null} blur />