DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 79db2da35d2967df71aca3c29c28b3157122cd5a felu/static/felu.js -rw-r--r-- 279 bytes
79db2da3Jonni Liljamo feat: ability add new users as admin 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;
	}
})