This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class HttpBuffer { | |
constructor ($injector) { | |
'ngInject'; | |
this.buffer = []; | |
this.$http = null; | |
this.$injector = $injector; | |
} | |
retryHttpRequest(config, deferred) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!window.Uint8ClampedArray && window.Uint8Array && window.ImageData) { | |
window.Uint8ClampedArray = function(input,arg1,arg2) { | |
var len = 0; | |
if (typeof input == "undefined") { } | |
else if (!isNaN(parseInt(input.length))) { //an array, yay | |
len = input.length; | |
} | |
else if (input instanceof ArrayBuffer) { | |
return new Uint8ClampedArray(new Uint8Array(input,arg1,arg2)); | |
} |