MCPcopy
hub / github.com/027xiguapi/code-box / runCssFunc

Function runCssFunc

utils/cssCodeHook.tsx:17–21  ·  view source on GitHub ↗
(runCss)

Source from the content-addressed store, hash-verified

15
16 /* 插入自定义css代码 */
17 function runCssFunc(runCss) {
18 const id = `${name}-css`
19 closeLog || console.log(`${name} 插入自定义css代码`, { cssCode, runCss })
20 runCss ? addCss(cssCode, id) : removeCss(id)
21 }
22
23 return [cssCode, runCss]
24}

Callers 1

useCssCodeHookFunction · 0.85

Calls 2

addCssFunction · 0.85
removeCssFunction · 0.85

Tested by

no test coverage detected