Browse Source

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

gigaherz 13 years ago
parent
commit
536519a9a1
  1. 4
      web/viewer.js

4
web/viewer.js

@ -258,7 +258,9 @@ var PDFView = { @@ -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…
Cancel
Save