From aaa672d5ff18ffe79b5d974a652543898e86266f Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Mon, 5 Dec 2011 17:48:21 -0600 Subject: [PATCH] Fixing opening from the file system --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 284b3cb40..bbdf90f60 100644 --- a/src/core.js +++ b/src/core.js @@ -31,7 +31,7 @@ function getPdf(arg, callback) { var xhr = new XMLHttpRequest(); xhr.open('GET', params.url); xhr.mozResponseType = xhr.responseType = 'arraybuffer'; - xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200; + xhr.expected = (params.url.indexOf('file:') === 0) ? 0 : 200; if ('progress' in params) xhr.onprogress = params.progress || undefined;