MCPcopy Create free account
hub / github.com/HumanSignal/label-studio / reInsertScripts

Function reInsertScripts

web/apps/labelstudio/src/utils/scripts.js:124–137  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

122 * @param {HTMLElement} root
123 */
124export const reInsertScripts = async (root) => {
125 const scripts = root.querySelectorAll("script");
126
127 if (!scripts.length) return [];
128
129 const iterarot = scriptIterator(Array.from(scripts));
130 const result = [];
131
132 for await (const script of iterarot) {
133 result.push(script);
134 }
135
136 return result;
137};

Callers 3

StaticContent.jsxFile · 0.90
swapNodesFunction · 0.90
swapHeadScriptsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected