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

Function ensureFouceGuard

www/js/ext/component.esm.js:625–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623 const { runtime, createParser, reactivity } = _hyperscript.internals;
624 const tokenizer = new Tokenizer();
625 function ensureFouceGuard() {
626 if (typeof document === "undefined" || !document.head) return;
627 if (document.head.querySelector('style[data-hyperscript-component="fouce-guard"]')) return;
628 var styleEl = document.createElement("style");
629 styleEl.setAttribute("data-hyperscript-component", "fouce-guard");
630 styleEl.textContent = ":not(:defined) { visibility: hidden; }";
631 document.head.appendChild(styleEl);
632 }
633 function substituteSlots(templateSource, slotContent, scopeSel) {
634 if (!slotContent) return templateSource;
635 var tmp = document.createElement("div");

Callers 1

componentPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected