Open maxid opened 7 years ago
+1
An idea to do this by changing the css background property when there is failure. This is an example using axios (and Jquery selector): `
// before a response is returned stop nprogress axios.interceptors.response.use(response => { NProgress.done(); return response }, error => { $('#nprogress .bar').css('background', 'red'); NProgress.done(); return error });
`
It is recommended to increase the failure style NProgress.failure() or NProgress.error()