Witam! tak jak w temacie.
Mam problem z funkcją która działa na przeglądarce Google Chrome a na Mozzila Firefox już nie.


  1. Targa.prototype.open = function targaOpen(path, callback) {
  2.  
  3. var req, tga = this;
  4. req = new XMLHttpRequest();
  5. req.responseType = 'arraybuffer';
  6. req.open('GET', path, true);
  7. req.onload = function() {
  8. if(this.status === 200) {
  9. tga.load(new Uint8Array(req.response));
  10. if(callback) {
  11. callback.call(tga);
  12. }
  13. }
  14. };
  15. req.send(null);
  16.  
  17. };



Błąd z konsoli:
  1. InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable


Proszę o pomoc! Z góry dziękuje!