fix pdf display problems in chrome

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

File diff suppressed because one or more lines are too long

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;
});
}