We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a3a91 commit cf314b6Copy full SHA for cf314b6
templates/home/index.html
@@ -39,10 +39,12 @@
39
var json = JSON.parse(xhr.responseText);
40
if(json.response.length === 0) {
41
document.getElementById("short-url").textContent = "There was a problem with your url.";
42
- return;
+
43
44
}
45
- document.getElementById("short-url").textContent = json.response;
+ else {
46
+ document.getElementById("short-url").textContent = json.response;
47
+ }
48
49
};
50
var contentType = "multipart/form-data; boundary=----WebKitFormBoundary2CKH4r5KWjDsz3Bp";
0 commit comments