(id)
| 319 | } |
| 320 | |
| 321 | function ensureStyleElement(id) { |
| 322 | const selector = `style#${id}`; |
| 323 | const $style = tag.get(selector) ?? <style id={id}></style>; |
| 324 | if (!$style.isConnected) { |
| 325 | document.head.append($style); |
| 326 | } |
| 327 | return $style; |
| 328 | } |
| 329 | |
| 330 | export default { |
| 331 | add, |
no test coverage detected