DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: c22516aad2f0ffa1decb6e1a6ae1221d84e7ce8f felu/static/felu.js -rw-r--r-- 279 bytes
c22516aaJonni Liljamo feat: more breaking changes by chaning the initial schema 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;
	}
})