Browse Source

Fix review comments.

gigaherz 13 years ago
parent
commit
1a915943cd
  1. 5
      web/viewer.js

5
web/viewer.js

@ -387,8 +387,9 @@ var PDFView = {
this.url = url; this.url = url;
try { try {
document.title = decodeURIComponent(getFileName(url)) || url; document.title = decodeURIComponent(getFileName(url)) || url;
} catch (Exception) { } catch (e) {
console.log('WARNING: Unable to decode: ' + getFileName(url)); // decodeURIComponent may throw URIError,
// fall back to using the unprocessed url in that case
document.title = url; document.title = url;
} }
}, },

Loading…
Cancel
Save