Browse Source

Add stub for the last piece of the puzzle

asraniel 13 years ago
parent
commit
315071ca28
  1. 5
      src/core.js

5
src/core.js

@ -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…
Cancel
Save