Add stub for the last piece of the puzzle
This commit is contained in:
parent
353a43cb46
commit
315071ca28
@ -31,6 +31,11 @@ function getPdf(arg, callback) {
|
|||||||
params = { url: arg };
|
params = { url: arg };
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
if(params.headers){
|
||||||
|
//TODO: Code this, use xhr.setRequestHeader(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
xhr.open('GET', params.url);
|
xhr.open('GET', params.url);
|
||||||
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
|
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
|
||||||
var protocol = params.url.indexOf(':') < 0 ? window.location.protocol :
|
var protocol = params.url.indexOf(':') < 0 ? window.location.protocol :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user