diff --git a/frontend/src/Icon.js b/frontend/src/Icon.js index 9d5e067..80e6aac 100644 --- a/frontend/src/Icon.js +++ b/frontend/src/Icon.js @@ -18,9 +18,13 @@ function Icon(props) { async function getIcon(ethAddress) { set_ethAddress(ethAddress); try { + console.log("fetching",`https://${props.serverurl}/logo/${ethAddress}`); const rez = await fetch(`https://${props.serverurl}/logo/${ethAddress}`, { cache: "no-store" }) + console.log("resp",rez); const blob = await rez.blob(); + console.log("blob",blob); const icon = URL.createObjectURL(blob); + console.log("icon",icon); set_icon(icon); } catch (e) { console.warn(`No icon for ${ethAddress}`, e) @@ -30,9 +34,13 @@ function Icon(props) { async function getIcon_uHTTP(ethAddress) { set_ethAddress(ethAddress); try { + console.log("[uHTTP] fetching",`https://${props.serverurl}/logo/${ethAddress}`); const rez = await props.uHTTP.fetch(`https://${props.serverurl}/logo/${ethAddress}`) + console.log("[uHTTP] resp",rez); const blob = await rez.blob(); + console.log("[uHTTP] blob",blob); const icon = URL.createObjectURL(blob); + console.log("[uHTTP] icon",icon); set_icon(icon); } catch (e) { console.warn(`[uHTTP] No icon for ${ethAddress}`, e)