MCPcopy Create free account
hub / github.com/NMWplays/Glowify / Section

Function Section

theme.js:6500–6502  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6498 function loadFamilies(id, families) {
6499 const wanted = families.filter((f2) => f2 && f2 !== FONT_DEFAULT && BY_FAMILY.has(f2));
6500 const existing = Array.from(document.querySelectorAll(`link[data-glowify-fonts="${id}"]`));
6501 const hrefs = [];
6502 for (let i2 = 0; i2 < wanted.length; i2 += CHUNK_SIZE) {
6503 const query = wanted.slice(i2, i2 + CHUNK_SIZE).map((f2) => `family=${encodeURIComponent(f2).replace(/%20/g, "+")}:wght@400;500;700`).join("&");
6504 hrefs.push(`https://fonts.googleapis.com/css2?${query}&display=swap`);
6505 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected