DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: d2a556d1cc463afad68f93a22c613261ba4c167c felu/static/felu.js -rw-r--r-- 279 bytes
d2a556d1Jonni Liljamo refactor: directory layout 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;
	}
})