webmodules / jsonp

A simple JSONP implementation
1.91k stars 332 forks source link

How to handler 404 error? only timeout error now #54

Open bravelincy opened 5 years ago

bravelincy commented 5 years ago

It seems that only timeout will invoke the callback passed Timeout error, so how can I handle 404 error? I want the callback also be invoked if an onerror event dispatched.