DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 23fe5465b8a6ff35d33d749c5a059ee83f33e4f0 felu/static/felu.js -rw-r--r-- 279 bytes
23fe5465Jonni Liljamo fix: reorder dockerfile to cache templ install a month ago
                                                                                
1
2
3
4
5
6
7
8
9
document.body.addEventListener('htmx:beforeSwap', function(evt) {
	if (evt.detail.xhr.status === 400) {
		evt.detail.shouldSwap = true;
		evt.detail.isError = false;
	} else if (evt.detail.xhr.status === 401) {
		evt.detail.shouldSwap = true;
		evt.detail.isError = false;
	}
})