Browse Source

Decode the filename when assigning to title.

gigaherz 13 years ago
parent
commit
2283f0bac1
  1. 2
      web/viewer.js

2
web/viewer.js

@ -311,7 +311,7 @@ var PDFView = {
open: function pdfViewOpen(url, scale) { open: function pdfViewOpen(url, scale) {
this.url = url; this.url = url;
document.title = getFileName(url) || url; document.title = decodeURIComponent(getFileName(url)) || url;
if (!PDFView.loadingBar) { if (!PDFView.loadingBar) {
PDFView.loadingBar = new ProgressBar('#loadingBar', {}); PDFView.loadingBar = new ProgressBar('#loadingBar', {});

Loading…
Cancel
Save