MCPcopy
hub / github.com/ionic-team/ionicons / safeFallback

Function safeFallback

src/components/icon/request.ts:11–15  ·  view source on GitHub ↗

* Safely fallback to an empty svg

(url: string)

Source from the content-addressed store, hash-verified

9 * Safely fallback to an empty svg
10 */
11function safeFallback(url: string) {
12 const svg = '';
13 ioniconContent.set(url, svg);
14 return svg;
15}
16
17export const getSvgContent = (url: string, sanitize: boolean): Promise<string> => {
18 /**

Callers 2

getSvgContentFunction · 0.85
fetchSvgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…