File tree 1 file changed +6
-4
lines changed
packages/react-dom-bindings/src/client
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -759,6 +759,12 @@ export function commitTextUpdate(
759
759
textInstance . nodeValue = newText ;
760
760
}
761
761
762
+ const supportsMoveBefore =
763
+ // $FlowFixMe[prop-missing]: We're doing the feature detection here.
764
+ enableMoveBefore &&
765
+ typeof window !== 'undefined' &&
766
+ typeof window . Node . prototype . moveBefore === 'function' ;
767
+
762
768
export function appendChild (
763
769
parentInstance : Instance ,
764
770
child : Instance | TextInstance ,
@@ -801,10 +807,6 @@ export function appendChildToContainer(
801
807
}
802
808
}
803
809
804
- const supportsMoveBefore =
805
- // $FlowFixMe[prop-missing]: We're doing the feature detection here.
806
- enableMoveBefore && typeof Node . prototype . moveBefore === 'function' ;
807
-
808
810
export function insertBefore (
809
811
parentInstance : Instance ,
810
812
child : Instance | TextInstance ,
You can’t perform that action at this time.
0 commit comments