How to send error using the javascript v2 api?

Sprinkle

Posted on
Dec 25 2015

Hi,

When using the JavaScript V2 API, in the browser, how do we manually send error?

Using the V1 syntax Raygun.send() works, but sometime if it is really early before Raygun is fully load, Raygun object is not available, what is the recommended way?


Callum

Posted on
Jan 05 2016

The intended approach is to use Raygun.send() as before, but place it inside a ready event handler, e.g $(document).ready() if using jQuery.

Hope this helps!


Reply