]> git.parisson.com Git - pdf.js.git/commitdiff
Wrong variable name, fix
authorJakob Miland <saebekassebil@gmail.com>
Mon, 14 May 2012 18:58:56 +0000 (20:58 +0200)
committerJakob Miland <saebekassebil@gmail.com>
Mon, 14 May 2012 18:58:56 +0000 (20:58 +0200)
src/api.js

index cd10ee366f12000b1db3a27516b1c75c947f0c29..3ac4da565e4d0dde89c3a65f44920f09f24dd69c 100644 (file)
@@ -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') {