Merge pull request #5160 from tomdw/feature/fix-angular-compatibility-ie9-conflict
only convert in IE9 if the requested responseType is actually an arraybu...
This commit is contained in:
		
						commit
						5e1861499c
					
				@ -171,7 +171,11 @@ if (typeof PDFJS === 'undefined') {
 | 
			
		||||
  if (typeof VBArray !== 'undefined') {
 | 
			
		||||
    Object.defineProperty(xhrPrototype, 'response', {
 | 
			
		||||
      get: function xmlHttpRequestResponseGet() {
 | 
			
		||||
        return new Uint8Array(new VBArray(this.responseBody).toArray());
 | 
			
		||||
        if (this.responseType === 'arraybuffer') {
 | 
			
		||||
          return new Uint8Array(new VBArray(this.responseBody).toArray());
 | 
			
		||||
        } else {
 | 
			
		||||
          return this.responseText;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
    return;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user