DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 80794a2467e2e6e5c48dc00e469e2dcdb3c190bd felu/static/felu.js -rw-r--r-- 279 bytes
80794a24Jonni Liljamo feat: add RFC 2136 docs for lego 14 days 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;
	}
})