Browse Source

More Flow fixes

main
Dan 7 years ago
parent
commit
58804cc370
  1. 2
      src/utils/patchDOMForGoogleTranslate.js

2
src/utils/patchDOMForGoogleTranslate.js

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

Loading…
Cancel
Save