File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/react-dom-bindings/src/client Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -759,6 +759,12 @@ export function commitTextUpdate(
759759 textInstance . nodeValue = newText ;
760760}
761761
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+
762768export function appendChild (
763769 parentInstance : Instance ,
764770 child : Instance | TextInstance ,
@@ -801,10 +807,6 @@ export function appendChildToContainer(
801807 }
802808}
803809
804- const supportsMoveBefore =
805- // $FlowFixMe[prop-missing]: We're doing the feature detection here.
806- enableMoveBefore && typeof Node . prototype . moveBefore === 'function' ;
807-
808810export function insertBefore (
809811 parentInstance : Instance ,
810812 child : Instance | TextInstance ,
You can’t perform that action at this time.
0 commit comments