tonistiigi/mega

firefox error with browserify

Closed this issue · 2 comments

hi :)

there s a problem with the demo page and firefox

error

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

coming from

self.xhr.responseType = 'arraybuffer'

the download works if i comment this line then i have

TypeError: buf.copy is not a function

when the download end

thanks :)

ps: no problems on chrome

demo page for browserify :p

no idears toni ?

thx

ok

we just have to put the line self.xhr.responseType = 'arraybuffer' after the xhr.open not before

thanks