mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
show generic error for htmx:responseError event
This commit is contained in:
parent
fa743fc142
commit
2aab48a3f9
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue