Commit 39ca7014 authored by MozLando's avatar MozLando
Browse files

Merge #8211



8211: For #8208: Add a link to the original page in Reader Mode r=csadilek a=miDeb

The url at the top of the Reader Mode is now a link to the original page.



Co-authored-by: default avatarMichael Debertol <michael.debertol@gmail.com>
parents 6fbe53de 27a451b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class ReaderView {

    let article = Object.assign(
      result,
      {url: new URL(url).hostname},
      {url: new URL(url)},
      {readingTime: this.getReadingTime(result.length, result.language)},
      {byline: this.getByline()},
      {dir: this.getTextDirection(result)},
@@ -131,7 +131,7 @@ class ReaderView {
      <body class="mozac-readerview-body">
        <div id="mozac-readerview-container" class="container" dir=${article.dir}>
          <div class="header">
            <a class="domain">${article.url}</a>
            <a class="domain" href=${article.url.href}>${article.url.hostname}</a>
            <div class="domain-border"></div>
            <h1>${article.title}</h1>
            <div class="credits">${article.byline}</div>