Catch all errors on frontend
Simple and efficient way of catching all errors on front-end environments.
1window.onerror = function myErrorHandler(errorMsg, url, lineNumber) {
2 // POST to /api/v1/frontend-error/
3 return false;
4}
Created on 7/30/2018