mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
More Flow fixes
This commit is contained in:
@@ -15,6 +15,7 @@ export default function patchDOMForGoogleTranslate() {
|
||||
return;
|
||||
}
|
||||
|
||||
// $FlowFixMe Intentionally monkepatching.
|
||||
const originalRemoveChild = Node.prototype.removeChild;
|
||||
// $FlowFixMe Intentionally monkepatching.
|
||||
Node.prototype.removeChild = function(child) {
|
||||
@@ -31,6 +32,7 @@ export default function patchDOMForGoogleTranslate() {
|
||||
return originalRemoveChild.apply(this, arguments);
|
||||
};
|
||||
|
||||
// $FlowFixMe Intentionally monkepatching.
|
||||
const originalInsertBefore = Node.prototype.insertBefore;
|
||||
// $FlowFixMe Intentionally monkepatching.
|
||||
Node.prototype.insertBefore = function(newNode, referenceNode) {
|
||||
|
||||
Reference in New Issue
Block a user