From 45d6daa8535c12a21a42734435351583f17bfea5 Mon Sep 17 00:00:00 2001 From: Jakob Miland Date: Mon, 14 May 2012 20:58:56 +0200 Subject: [PATCH] Wrong variable name, fix --- src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.js b/src/api.js index cd10ee366..3ac4da565 100644 --- a/src/api.js +++ b/src/api.js @@ -20,7 +20,7 @@ PDFJS.getDocument = function getDocument(source) { var url, data, headers, password, parameters = {}; if (typeof source === 'string') { - url = params; + url = source; } else if (isArrayBuffer(source)) { data = source; } else if (typeof source === 'object') {