Skip to content

Commit 18cbcbf

Browse files
committed
Remove unnecessary check for link node in insertStylesheetIntoRoot function
1 parent 0a53c46 commit 18cbcbf

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
@@ -3544,7 +3544,6 @@ function insertStylesheetIntoRoot(
35443544
for (let i = 0; i < nodes.length; i++) {
35453545
const node = nodes[i];
35463546
if (
3547-
node.nodeName === 'link' ||
35483547
// We omit style tags with media="not all" because they are not in the right position
35493548
// and will be hoisted by the Fizz runtime imminently.
35503549
node.getAttribute('media') !== 'not all'

0 commit comments

Comments
 (0)