mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Assign the filename to the page title instead of the full URL
This commit is contained in:
parent
8ee818ec03
commit
536519a9a1
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ var PDFView = {
|
|||
},
|
||||
|
||||
open: function pdfViewOpen(url, scale) {
|
||||
document.title = this.url = url;
|
||||
this.url = url;
|
||||
|
||||
document.title = (url.substring(url.lastIndexOf('/')+1)) || url;
|
||||
|
||||
var self = this;
|
||||
PDFJS.getPdf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue