1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Embedded PDF viewers should not be changing their parent page's title.

This commit is contained in:
speedplane 2015-03-05 22:36:08 -05:00
parent fa0f09bcf0
commit 80d85b5fe7

View file

@ -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;