Don't try to open empty Markdown links (#1332)

This commit is contained in:
Harrison Healey 2018-01-08 12:19:39 -05:00 committed by enahum
parent bba8dc1616
commit 9bc9ca6245

View file

@ -32,6 +32,10 @@ export default class MarkdownLink extends PureComponent {
handlePress = () => {
const url = normalizeProtocol(this.props.href);
if (!url) {
return;
}
Linking.canOpenURL(url).then((supported) => {
if (supported) {
Linking.openURL(url);