MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / cleanupScript

Function cleanupScript

ui/src/utils/common.ts:121–125  ·  view source on GitHub ↗
(script: HTMLScriptElement)

Source from the content-addressed store, hash-verified

119 const scriptId = jsId || `script-${btoa(url).slice(0, 12)}`;
120
121 const cleanupScript = (script: HTMLScriptElement) => {
122 if (script && script.parentElement) {
123 script.parentElement.removeChild(script);
124 }
125 };
126
127 return new Promise((resolve, reject) => {
128 if (typeof document === 'undefined') {

Callers 1

loadScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected