Electron: Display URL for links

pull/165/head
Laurent Cozic 2018-01-09 19:26:46 +01:00
parent 2f13e689b9
commit 0b93515711
1 changed files with 1 additions and 1 deletions

View File

@ -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.