MCPcopy Index your code
hub / github.com/arfct/itty-bitty / renderScriptContent

Function renderScriptContent

docs/render.js:75–83  ·  view source on GitHub ↗
(data, origin)

Source from the content-addressed store, hash-verified

73
74
75function renderScriptContent(data, origin) {
76 var base = el('base', {href: data.script});
77 document.head.appendChild(base);
78 window.script = data.script
79 window.params = data;
80 window.params.origin = origin;
81 console.log("🖊 Rendering with", {script:data.script, params:data})
82 loadScript(data.script);
83}
84
85window.addEventListener("message", function(e) {
86 renderScriptContent(e.data, e.origin);

Callers 2

renderContentWithScriptFunction · 0.85
render.jsFile · 0.85

Calls 2

elFunction · 0.70
loadScriptFunction · 0.70

Tested by

no test coverage detected