The errors that are logged are the errors that call window.onerror. Please note that not all errors end up there. But… some do, and now you can catch them! 😉
- Second version. Slightly different than first version!
- First version