MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / injectPluginAssets

Function injectPluginAssets

dashboard/shell/src/main.jsx:148–159  ·  view source on GitHub ↗
(manifest)

Source from the content-addressed store, hash-verified

146// ---------------------------------------------------------------------------
147
148function injectPluginAssets(manifest) {
149 if (manifest.css) {
150 const link = document.createElement("link");
151 link.rel = "stylesheet";
152 link.href = `/dashboard-plugins/${manifest.name}/${manifest.css}`;
153 document.head.appendChild(link);
154 }
155 const script = document.createElement("script");
156 script.src = `/dashboard-plugins/${manifest.name}/${manifest.entry || "dist/index.js"}`;
157 script.async = false;
158 document.body.appendChild(script);
159}
160
161// ---------------------------------------------------------------------------
162// Favicon (SVG data URL — trivially embeddable, no extra file)

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected