diff --git a/internal/webserver/embedded/js/xh-error-check.js b/internal/webserver/embedded/js/xh-error-check.js index 485bb66..2ac93c9 100644 --- a/internal/webserver/embedded/js/xh-error-check.js +++ b/internal/webserver/embedded/js/xh-error-check.js @@ -8,10 +8,7 @@ document.body.addEventListener('htmx:afterRequest', function (evt) { // Server error with response contents, equivalent to htmx:responseError const xhr = evt.detail.xhr; if (xhr.status == "403") { - location.reload() - } - if (xhr.status == "400") { - return + return location.reload() } console.warn("Server error", evt.detail) diff --git a/internal/webserver/embedded/views/users/edit.html b/internal/webserver/embedded/views/users/edit.html index 2998371..0fdaa79 100644 --- a/internal/webserver/embedded/views/users/edit.html +++ b/internal/webserver/embedded/views/users/edit.html @@ -103,4 +103,4 @@ - \ No newline at end of file + \ No newline at end of file