Mam problem z funkcją która działa na przeglądarce Google Chrome a na Mozzila Firefox już nie.
Targa.prototype.open = function targaOpen(path, callback) { var req, tga = this; req = new XMLHttpRequest(); req.responseType = 'arraybuffer'; req.open('GET', path, true); req.onload = function() { if(this.status === 200) { tga.load(new Uint8Array(req.response)); if(callback) { callback.call(tga); } } }; req.send(null); };
Błąd z konsoli:
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!