Skip to content

Commit

Permalink
Remove unnecessary check for link node in insertStylesheetIntoRoot fu…
Browse files Browse the repository at this point in the history
…nction
  • Loading branch information
sweetliquid committed Mar 6, 2024
1 parent c11b196 commit fca552b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3578,7 +3578,6 @@ function insertStylesheetIntoRoot(
for (let i = 0; i < nodes.length; i++) {
const node = nodes[i];
if (
node.nodeName === 'link' ||
// We omit style tags with media="not all" because they are not in the right position
// and will be hoisted by the Fizz runtime imminently.
node.getAttribute('media') !== 'not all'
Expand Down

0 comments on commit fca552b

Please sign in to comment.