fix: dont setMessage on iTunes error
This commit is contained in:
@@ -172,9 +172,8 @@ function randomIPA() {
|
|||||||
output.innerHTML = entriesToStr('.single', [idx]);
|
output.innerHTML = entriesToStr('.single', [idx]);
|
||||||
|
|
||||||
const iTunesUrl = 'http://itunes.apple.com/lookup?bundleId=' + entry.bundleId;
|
const iTunesUrl = 'http://itunes.apple.com/lookup?bundleId=' + entry.bundleId;
|
||||||
loadFile(iTunesUrl, setMessage, function (data) {
|
loadFile(iTunesUrl, console.error, function (data) {
|
||||||
const obj = JSON.parse(data);
|
const obj = JSON.parse(data);
|
||||||
console.log(obj);
|
|
||||||
if (!obj || obj.resultCount < 1) {
|
if (!obj || obj.resultCount < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user