MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / ensureFouceGuard

Function ensureFouceGuard

www/js/_hyperscript-max.js:11037–11044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11035 const { runtime: runtime2, createParser, reactivity: reactivity2 } = _hyperscript2.internals;
11036 const tokenizer2 = new Tokenizer();
11037 function ensureFouceGuard() {
11038 if (typeof document === "undefined" || !document.head) return;
11039 if (document.head.querySelector('style[data-hyperscript-component="fouce-guard"]')) return;
11040 var styleEl = document.createElement("style");
11041 styleEl.setAttribute("data-hyperscript-component", "fouce-guard");
11042 styleEl.textContent = ":not(:defined) { visibility: hidden; }";
11043 document.head.appendChild(styleEl);
11044 }
11045 function substituteSlots(templateSource, slotContent, scopeSel) {
11046 if (!slotContent) return templateSource;
11047 var tmp = document.createElement("div");

Callers 1

componentPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected