From 0b93515711e982f0723bc6922b0e4caf1933bd4d Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 9 Jan 2018 19:26:46 +0100 Subject: [PATCH] Electron: Display URL for links --- ReactNativeClient/lib/MdToHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/MdToHtml.js b/ReactNativeClient/lib/MdToHtml.js index 24558e346..b6bbd0fa6 100644 --- a/ReactNativeClient/lib/MdToHtml.js +++ b/ReactNativeClient/lib/MdToHtml.js @@ -125,9 +125,9 @@ class MdToHtml { renderOpenLink_(attrs, options) { let href = this.getAttr_(attrs, 'href'); - const title = this.getAttr_(attrs, 'title'); const text = this.getAttr_(attrs, 'text'); const isResourceUrl = Resource.isResourceUrl(href); + const title = isResourceUrl ? this.getAttr_(attrs, 'title') : href; if (isResourceUrl && !this.supportsResourceLinks_) { // In mobile, links to local resources, such as PDF, etc. currently aren't supported.