Assign the filename to the page title instead of the full URL
This commit is contained in:
parent
8ee818ec03
commit
536519a9a1
@ -258,7 +258,9 @@ var PDFView = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
open: function pdfViewOpen(url, scale) {
|
open: function pdfViewOpen(url, scale) {
|
||||||
document.title = this.url = url;
|
this.url = url;
|
||||||
|
|
||||||
|
document.title = (url.substring(url.lastIndexOf('/')+1)) || url;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
PDFJS.getPdf(
|
PDFJS.getPdf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user