More Flow fixes

This commit is contained in:
Dan
2018-08-31 10:25:00 +01:00
parent 88799e61fd
commit 58804cc370

View File

@@ -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) {