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:
RandomByte 2013-09-08 21:09:48 +02:00
parent 80d3f66c43
commit 58313a1721

View File

@ -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);