Skip to content

Commit

Permalink
Polyfill Element for Node (#6607)
Browse files Browse the repository at this point in the history
* Polyfill Element for Node

* Adds missing "const" keyword to Element (#6609)
  • Loading branch information
pshrmn authored and timdorr committed Mar 3, 2019
1 parent 065950c commit f4081ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-router-dom/modules/Link.js
Expand Up @@ -59,6 +59,8 @@ class Link extends React.Component {

if (__DEV__) {
const toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
// polyfill for Node
const Element = typeof Element === "undefined" ? function() {} : Element;
const innerRefType = PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
Expand Down

0 comments on commit f4081ae

Please sign in to comment.