mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add stub for the last piece of the puzzle
This commit is contained in:
parent
353a43cb46
commit
315071ca28
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ function getPdf(arg, callback) {
|
|||
params = { url: arg };
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
|
||||
if(params.headers){
|
||||
//TODO: Code this, use xhr.setRequestHeader(key, value);
|
||||
}
|
||||
|
||||
xhr.open('GET', params.url);
|
||||
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
|
||||
var protocol = params.url.indexOf(':') < 0 ? window.location.protocol :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue