mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Embedded PDF viewers should not be changing their parent page's title.
This commit is contained in:
parent
fa0f09bcf0
commit
80d85b5fe7
1 changed files with 4 additions and 0 deletions
|
@ -434,6 +434,10 @@ var PDFViewerApplication = {
|
||||||
},
|
},
|
||||||
|
|
||||||
setTitle: function pdfViewSetTitle(title) {
|
setTitle: function pdfViewSetTitle(title) {
|
||||||
|
if (this.isViewerEmbedded) {
|
||||||
|
// Embedded PDF viewers should not be changing their parent page's title.
|
||||||
|
return;
|
||||||
|
}
|
||||||
document.title = title;
|
document.title = title;
|
||||||
//#if B2G
|
//#if B2G
|
||||||
// document.getElementById('activityTitle').textContent = title;
|
// document.getElementById('activityTitle').textContent = title;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue