mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Fix review comments.
This commit is contained in:
parent
d64bb603c8
commit
1a915943cd
1 changed files with 3 additions and 2 deletions
|
@ -387,8 +387,9 @@ var PDFView = {
|
|||
this.url = url;
|
||||
try {
|
||||
document.title = decodeURIComponent(getFileName(url)) || url;
|
||||
} catch (Exception) {
|
||||
console.log('WARNING: Unable to decode: ' + getFileName(url));
|
||||
} catch (e) {
|
||||
// decodeURIComponent may throw URIError,
|
||||
// fall back to using the unprocessed url in that case
|
||||
document.title = url;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue