MCPcopy Create free account
hub / github.com/HermanMartinus/bearblog / executeScripts

Function executeScripts

staticfiles/debug_toolbar/js/utils.js:42–50  ·  view source on GitHub ↗
(scripts)

Source from the content-addressed store, hash-verified

40 return !element.classList.contains("djdt-hidden");
41 },
42 executeScripts(scripts) {
43 scripts.forEach(function (script) {
44 const el = document.createElement("script");
45 el.type = "module";
46 el.src = script;
47 el.async = true;
48 document.head.appendChild(el);
49 });
50 },
51 applyStyles(container) {
52 /*
53 * Given a container element, apply styles set via data-djdt-styles attribute.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected