Skip to content

Commit fca552b

Browse files
committed
Remove unnecessary check for link node in insertStylesheetIntoRoot function
1 parent c11b196 commit fca552b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,6 @@ function insertStylesheetIntoRoot(
35783578
for (let i = 0; i < nodes.length; i++) {
35793579
const node = nodes[i];
35803580
if (
3581-
node.nodeName === 'link' ||
35823581
// We omit style tags with media="not all" because they are not in the right position
35833582
// and will be hoisted by the Fizz runtime imminently.
35843583
node.getAttribute('media') !== 'not all'

0 commit comments

Comments
 (0)