Skip to content
Snippets Groups Projects
Verified Commit 9219b114 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Trim domain name on submit

parent 15fa5390
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ function submit () {
var XHR = new XMLHttpRequest();
var FD = new FormData();
var payload = {
name: document.getElementById('domain-input').value
name: document.getElementById('domain-input').value.trim()
}
XHR.onreadystatechange = function () {
if (XHR.readyState === 4 && XHR.status === 400) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment