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:
parent
e4a75cf02d
commit
6d35073a9c
4 changed files with 113 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue