MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / makeMonogram

Function makeMonogram

static/js/catalog.js:1657–1663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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";

Callers 1

wireSupportersDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected