DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 0ef60cda78aa255496bee7d1b212f31016a78dd9 felu/static/felu.js -rw-r--r-- 279 bytes
0ef60cdaJonni Liljamo feat: components in multiple files, and i think all endpoints initialized 11 months 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;
	}
})