DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: d42a0dff662231910094626e5595a9980affa260 felu/static/felu.js -rw-r--r-- 279 bytes
d42a0dffJonni Liljamo fix: don't fetch apikey in all domains 1 year, 23 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;
	}
})