We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11cad8 commit e1146b6Copy full SHA for e1146b6
src/core.js
@@ -31,19 +31,19 @@ function getPdf(arg, callback) {
31
params = { url: arg };
32
33
var xhr = new XMLHttpRequest();
34
-
+
35
xhr.open('GET', params.url);
36
37
var headers = params.headers;
38
if (headers) {
39
for (var property in headers) {
40
if (typeof headers[property] === 'undefined')
41
continue;
42
43
xhr.setRequestHeader(property, params.headers[property]);
44
}
45
46
47
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
48
var protocol = params.url.indexOf(':') < 0 ? window.location.protocol :
49
params.url.substring(0, params.url.indexOf(':') + 1);
0 commit comments