1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

removes expandUrl(url); fixes error message

This commit is contained in:
Yury Delendik 2012-07-19 16:10:26 -05:00
parent f199a8b19e
commit 7a0e91af4b
3 changed files with 4 additions and 11 deletions

View file

@ -33,10 +33,6 @@ function getFileName(url) {
return url.substring(url.lastIndexOf('/', end) + 1, end);
}
function expandUrl(url) {
return PDFJS.combineUrl(window.location.href, url);
}
var Cache = function cacheCache(size) {
var data = [];
this.push = function cachePush(view) {
@ -388,7 +384,7 @@ var PDFView = {
if (typeof url === 'string') { // URL
this.url = url;
document.title = decodeURIComponent(getFileName(url)) || url;
parameters.url = expandUrl(url);
parameters.url = PDFJS.combineUrl(window.location.href, url);
} else if (url && 'byteLength' in url) { // ArrayBuffer
parameters.data = url;
}