Skip to content

Commit

Permalink
Add Hypothes.is tweaks back
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Jun 18, 2015
1 parent 6ab4ae1 commit ab3f25e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viewer/web/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@
</div>
</div>

<script src="//hypothes.is/embed.js"></script>

</body>
</html>

6 changes: 6 additions & 0 deletions viewer/web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5945,6 +5945,12 @@ var PDFViewerApplication = {

setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) {
this.url = url;

var rel_canonical = document.createElement('link');
rel_canonical.href = url;
rel_canonical.rel = "canonical";
document.head.appendChild(rel_canonical);

try {
this.setTitle(decodeURIComponent(getFileName(url)) || url);
} catch (e) {
Expand Down

0 comments on commit ab3f25e

Please sign in to comment.