mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #5802 from speedplane/embedded-dont-set-title
Embedded Viewer Should Not Override Page Title
This commit is contained in:
commit
dc82ace0a3
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue