mirror of
https://github.com/airlabspl/uptimemonitor.git
synced 2025-08-15 04:39:15 +02:00
6 lines
191 B
JavaScript
6 lines
191 B
JavaScript
document.body.addEventListener('htmx:beforeSwap', function (evt) {
|
|
if (evt.detail.xhr.status === 400) {
|
|
evt.detail.shouldSwap = true;
|
|
evt.detail.isError = false;
|
|
}
|
|
}); |