sguiheux / EventSource

EventSource "polyfill" with custom headers
20 stars 10 forks source link

xhr.abort() causing error in safari and firefox #12

Closed hghammoud closed 6 years ago

hghammoud commented 6 years ago

need to check for undefined when close event like this

if (currentState === CLOSED) { if (xhr != undefined) { xhr.abort(); xhr = undefined; } return; }

hghammoud commented 6 years ago

thanks for the reactivity :D