Assign the filename to the page title instead of the full URL

This commit is contained in:
gigaherz 2012-03-23 16:26:06 +01:00
parent 8ee818ec03
commit 536519a9a1

View File

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