show generic error for htmx:responseError event

This commit is contained in:
Son 2021-11-03 11:27:23 +01:00
parent fa743fc142
commit 2aab48a3f9
1 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,10 @@
}
});
document.body.addEventListener('htmx:responseError', function(evt) {
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");
});
</script>
<script src="{{ url_for('static', filename='local-storage-polyfill.js') }}"></script>