DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 9527d36f71ea746e09e306318c9cd73b10c173fc felu/static/felu.js -rw-r--r-- 279 bytes
9527d36fJonni Liljamo fix: DNS pattern in the ui, following the previous commit 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;
	}
})