diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index 3a2f3cf71..5b42ec032 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -757,7 +757,6 @@ class NoteTextComponent extends React.Component { // When using the file:// protocol, openExternal doesn't work (does nothing) with URL-encoded paths require('electron').shell.openExternal(urlDecode(msg)); } else { - console.info('OPEN URL'); require('electron').shell.openExternal(msg); } } else if (msg.indexOf('#') === 0) { diff --git a/ReactNativeClient/lib/MdToHtml/rules/link_open.js b/ReactNativeClient/lib/MdToHtml/rules/link_open.js index fb04f6d8d..d786c3fbe 100644 --- a/ReactNativeClient/lib/MdToHtml/rules/link_open.js +++ b/ReactNativeClient/lib/MdToHtml/rules/link_open.js @@ -23,7 +23,7 @@ function installRule(markdownIt, mdOptions, ruleOptions) { const resource = result ? result.item : null; const resourceStatus = utils.resourceStatus(result); - if (resourceStatus !== 'ready') { + if (result && resourceStatus !== 'ready') { const icon = utils.resourceStatusFile(resourceStatus); return '' + ''; } else {