Don't try to open empty Markdown links (#1332)
This commit is contained in:
parent
bba8dc1616
commit
9bc9ca6245
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue