|
|
@ -255,11 +255,10 @@ var Type2Parser = function type2Parser(aFilePath) { |
|
|
|
|
|
|
|
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
xhr.open('GET', aFilePath, false); |
|
|
|
xhr.open('GET', aFilePath, false); |
|
|
|
xhr.mozResponseType = xhr.responseType = 'arraybuffer'; |
|
|
|
xhr.responseType = 'arraybuffer'; |
|
|
|
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200; |
|
|
|
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200; |
|
|
|
xhr.send(null); |
|
|
|
xhr.send(null); |
|
|
|
this.data = new Stream(xhr.mozResponseArrayBuffer || xhr.mozResponse || |
|
|
|
this.data = new Stream(xhr.response); |
|
|
|
xhr.responseArrayBuffer || xhr.response); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Turn on this flag for additional debugging logs
|
|
|
|
// Turn on this flag for additional debugging logs
|
|
|
|
var debug = false; |
|
|
|
var debug = false; |
|
|
|