Skip to content

Commit

Permalink
Merge pull request #5802 from speedplane/embedded-dont-set-title
Browse files Browse the repository at this point in the history
Embedded Viewer Should Not Override Page Title
  • Loading branch information
timvandermeij committed Mar 6, 2015
2 parents 2ade23e + 80d85b5 commit dc82ace
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ var PDFViewerApplication = {
},

setTitle: function pdfViewSetTitle(title) {
if (this.isViewerEmbedded) {
// Embedded PDF viewers should not be changing their parent page's title.
return;
}
document.title = title;
//#if B2G
// document.getElementById('activityTitle').textContent = title;
Expand Down

0 comments on commit dc82ace

Please sign in to comment.