Add stub for the last piece of the puzzle

This commit is contained in:
asraniel 2012-05-06 21:32:30 +02:00
parent 353a43cb46
commit 315071ca28

View File

@ -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 :