1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18: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

@ -86,10 +86,6 @@ function exceptionToString(e) {
return e.message + ('stack' in e ? ' at ' + e.stack.split('\n')[0] : '');
}
function expandUrl(url) {
return combineUrl(window.location.href, url);
}
function nextTask() {
cleanup();
@ -102,7 +98,8 @@ function nextTask() {
log('Loading file "' + task.file + '"\n');
getPdf(expandUrl(task.file), function nextTaskGetPdf(data) {
var absoluteUrl = combineUrl(window.location.href, task.file);
getPdf(absoluteUrl, function nextTaskGetPdf(data) {
var failure;
function continuation() {
task.pageNum = task.firstPage || 1;