Skip to content

Commit 1a91594

Browse files
committed
Fix review comments.
1 parent d64bb60 commit 1a91594

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/viewer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,9 @@ var PDFView = {
387387
this.url = url;
388388
try {
389389
document.title = decodeURIComponent(getFileName(url)) || url;
390-
} catch (Exception) {
391-
console.log('WARNING: Unable to decode: ' + getFileName(url));
390+
} catch (e) {
391+
// decodeURIComponent may throw URIError,
392+
// fall back to using the unprocessed url in that case
392393
document.title = url;
393394
}
394395
},

0 commit comments

Comments
 (0)