mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Removes B2G preprocessing directives.
This commit is contained in:
parent
1b847df2f3
commit
f3c3b1fc2d
9 changed files with 12 additions and 91 deletions
|
@ -287,11 +287,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
|
|||
} else {
|
||||
|
||||
var getXhr = function getXhr() {
|
||||
//#if B2G
|
||||
// return new XMLHttpRequest({ mozSystem: true });
|
||||
//#else
|
||||
return new XMLHttpRequest();
|
||||
//#endif
|
||||
};
|
||||
this.networkManager = new NetworkManager(this.url, {
|
||||
getXhr: getXhr,
|
||||
|
|
|
@ -35,7 +35,7 @@ var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
|
|||
}
|
||||
|
||||
var alwaysUseUint32ArrayView = false;
|
||||
//#if !(FIREFOX || MOZCENTRAL || B2G || CHROME)
|
||||
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
||||
// old webkits have issues with non-aligned arrays
|
||||
try {
|
||||
new Uint32Array(new Uint8Array(5).buffer, 0, 1);
|
||||
|
|
|
@ -50,11 +50,7 @@ var NetworkManager = (function NetworkManagerClosure() {
|
|||
this.withCredentials = args.withCredentials || false;
|
||||
this.getXhr = args.getXhr ||
|
||||
function NetworkManager_getXhr() {
|
||||
//#if B2G
|
||||
// return new XMLHttpRequest({ mozSystem: true });
|
||||
//#else
|
||||
return new XMLHttpRequest();
|
||||
//#endif
|
||||
};
|
||||
|
||||
this.currXhrId = 0;
|
||||
|
|
|
@ -503,8 +503,8 @@ Object.defineProperty(PDFJS, 'isLittleEndian', {
|
|||
}
|
||||
});
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL || B2G || CHROME)
|
||||
//// Lazy test if the userAgant support CanvasTypedArrays
|
||||
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
||||
//// Lazy test if the userAgent support CanvasTypedArrays
|
||||
function hasCanvasTypedArrays() {
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.width = canvas.height = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue