Skip to content

Commit

Permalink
fix: ie11 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and oliviertassinari committed Mar 3, 2020
1 parent f52c759 commit 67d1327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/modules/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Link(props) {
// catch role passed from ButtonBase. This is definitely a link
const role = roleProp === 'button' ? undefined : roleProp;

const isExternal = href.startsWith('https:') || href.startsWith('mailto:');
const isExternal = href.indexOf('https:') === 0 || href.indexOf('mailto:') === 0;

if (isExternal) {
return <MuiLink className={className} href={href} ref={innerRef} role={role} {...other} />;
Expand Down

0 comments on commit 67d1327

Please sign in to comment.