()
| 1655 | // A monogram avatar (first initial) keeps the tile on-brand when an entry |
| 1656 | // has no image, or its image fails to load (e.g. before the asset is added). |
| 1657 | const makeMonogram = () => { |
| 1658 | const m = document.createElement("span"); |
| 1659 | m.className = "lib-friend-monogram"; |
| 1660 | m.textContent = (f.name || "?").trim().charAt(0).toUpperCase(); |
| 1661 | m.setAttribute("aria-hidden", "true"); |
| 1662 | return m; |
| 1663 | }; |
| 1664 | if (f.logo) { |
| 1665 | const img = document.createElement("img"); |
| 1666 | img.className = f.avatar ? "lib-friend-avatar" : "lib-friend-logo"; |
no outgoing calls
no test coverage detected