1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Merge pull request #1953 from brendandahl/b2g

Add B2G build and new preprocessor.
This commit is contained in:
Yury Delendik 2012-08-08 08:37:26 -07:00
commit 70beb11a50
11 changed files with 545 additions and 301 deletions

View file

@ -29,9 +29,11 @@ function getPdf(arg, callback) {
var params = arg;
if (typeof arg === 'string')
params = { url: arg };
//#if !B2G
var xhr = new XMLHttpRequest();
//#else
//var xhr = new XMLHttpRequest({mozSystem: true});
//#endif
xhr.open('GET', params.url);
var headers = params.headers;