From: beat Date: Tue, 8 May 2012 14:34:46 +0000 (+0200) Subject: fix 4 lint errors X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e1146b64adf3d9408e8679d06136aab6db6978f8;p=pdf.js.git fix 4 lint errors --- diff --git a/src/core.js b/src/core.js index c6d8b74..99a8dd1 100644 --- a/src/core.js +++ b/src/core.js @@ -31,19 +31,19 @@ function getPdf(arg, callback) { params = { url: arg }; var xhr = new XMLHttpRequest(); - + xhr.open('GET', params.url); - + var headers = params.headers; if (headers) { for (var property in headers) { if (typeof headers[property] === 'undefined') continue; - + xhr.setRequestHeader(property, params.headers[property]); } } - + xhr.mozResponseType = xhr.responseType = 'arraybuffer'; var protocol = params.url.indexOf(':') < 0 ? window.location.protocol : params.url.substring(0, params.url.indexOf(':') + 1);