fix pdf display problems in chrome

This commit is contained in:
ansuz committed 2017-08-17 18:11:46 +02:00
1 parent bed7d95bf3
commit a4dbf39c4a
3 files changed
+25 -7

No files matched your search

+2 -2
View File
@@ -343,8 +343,8 @@ function isDataSchema(url) {
function getPDFFileNameFromURL(url) {
var query;
var title;
if (/\?/.test(url)) {
url.replace(/\?(.*)$/, function (all, t) {
if (/\#/.test(url)) {
url.replace(/\#(.*)$/, function (all, t) {
title = t;
});
}