plane spotter debugging
This commit is contained in:
@@ -361,7 +361,10 @@ export async function getADSBImage(icao) {
|
|||||||
).then(resp => resp.ok ? resp.json() : null);
|
).then(resp => resp.ok ? resp.json() : null);
|
||||||
|
|
||||||
let src;
|
let src;
|
||||||
if(specific?.photos?.[0]) src = specific.photos[0].thumbnail_large?.src || specific.photos[0].thumbnail?.src;
|
if(specific?.photos?.[0]) {
|
||||||
|
console.log(`Found ${icao}`);
|
||||||
|
src = specific.photos[0].thumbnail_large?.src || specific.photos[0].thumbnail?.src;
|
||||||
|
}
|
||||||
else src = await generic;
|
else src = await generic;
|
||||||
|
|
||||||
if(!src) return null;
|
if(!src) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user