(code, id?)
| 11 | } |
| 12 | |
| 13 | export function addCss(code, id?) { |
| 14 | const style = document.createElement("style") |
| 15 | const css = document.createTextNode(code) |
| 16 | style.setAttribute("data-id", id || "codebox-css") |
| 17 | style.appendChild(css) |
| 18 | document.head.appendChild(style) |
| 19 | } |
| 20 | |
| 21 | export function removeCss(id) { |
| 22 | var style = document.querySelector(`[data-id="${id}"]`) |
no outgoing calls
no test coverage detected