Skip to content

Commit cf314b6

Browse files
committed
Fe update
1 parent 75a3a91 commit cf314b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/home/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939
var json = JSON.parse(xhr.responseText);
4040
if(json.response.length === 0) {
4141
document.getElementById("short-url").textContent = "There was a problem with your url.";
42-
return;
42+
4343

4444
}
45-
document.getElementById("short-url").textContent = json.response;
45+
else {
46+
document.getElementById("short-url").textContent = json.response;
47+
}
4648
}
4749
};
4850
var contentType = "multipart/form-data; boundary=----WebKitFormBoundary2CKH4r5KWjDsz3Bp";

0 commit comments

Comments
 (0)