1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Initial build for b2g.

This commit is contained in:
Brendan Dahl 2012-07-27 15:19:43 -07:00
parent e4a75cf02d
commit 6d35073a9c
4 changed files with 113 additions and 3 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;