DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: 230d0a96b7eccd5e586dadb29ce160e7089b57c6 felu/static/felu.js -rw-r--r-- 279 bytes
230d0a96Jonni Liljamo fix: set tsigKey when creating a domain 17 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;
	}
})