DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 8c173e8fb830f8f08d656e0d6b8ad6d48c74dd1d felu/static/felu.js -rw-r--r-- 279 bytes
8c173e8fJonni Liljamo feat: manual updating of A records 1 year, 10 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;
	}
})