Skip to content

Commit

Permalink
fix(runtime): provide second arg to insertBefore (#5933)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner-reits authored Aug 9, 2024
1 parent f89c6a3 commit afcc9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const addStyle = (styleContainerNode: any, cmpMeta: d.ComponentRuntimeMet
* attach styles at the beginning of a shadow root node if we render shadow components
*/
if (cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation && styleContainerNode.nodeName !== 'HEAD') {
styleContainerNode.insertBefore(styleElm);
styleContainerNode.insertBefore(styleElm, null);
}
}

Expand Down

0 comments on commit afcc9a5

Please sign in to comment.