We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39421d6 commit 634834bCopy full SHA for 634834b
web_src/js/htmx.js
@@ -1,5 +1,5 @@
1
import * as htmx from 'htmx.org';
2
-import { showErrorToast } from './modules/toast.js';
+import {showErrorToast} from './modules/toast.js';
3
import 'htmx.org/dist/ext/ws.js';
4
5
// https://github.com/bigskysoftware/idiomorph#htmx
@@ -18,9 +18,7 @@ document.body.addEventListener('htmx:sendError', (e) => {
18
// https://htmx.org/events/#htmx:responseError
19
document.body.addEventListener('htmx:responseError', (e) => {
20
// TODO: add translations
21
- showErrorToast(
22
- `Error ${e.detail.xhr.status} when calling ${e.detail.requestConfig.path}`
23
- );
+ showErrorToast(`Error ${e.detail.xhr.status} when calling ${e.detail.requestConfig.path}`);
24
});
25
26
let webSocket;
0 commit comments