Added random number (0-100) to lastfm api jsonp callback-name to prevent undefined callbacks because they have been created at the exact same time.
Now all covers are loading correctly
This commit is contained in:
parent
80d3f66c43
commit
58313a1721
@ -90,7 +90,7 @@ function LastFM(options){
|
||||
/* Cross-domain GET request (JSONP). */
|
||||
else{
|
||||
/* Get JSONP callback name. */
|
||||
var jsonp = 'jsonp' + new Date().getTime();
|
||||
var jsonp = 'jsonp' + new Date().getTime() + Math.floor(Math.random()*101);
|
||||
|
||||
/* Calculate cache hash. */
|
||||
var hash = auth.getApiSignature(params);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user