progress
progress copied to clipboard
Error Handling
I introduced an error event that gets triggered when an error occurs during the progress tracking.
Progress.init({
// configuration options...
});
function customErrorHandler(error) {
// Handle the error...
}
// Add the customErrorHandler as the error handler
document.addEventListener('inertia:error', customErrorHandler);