We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf314b6 commit 2d597b3Copy full SHA for 2d597b3
templates/home/index.html
@@ -37,9 +37,9 @@
37
xhr.onreadystatechange = function () {
38
if (xhr.readyState === 4) {
39
var json = JSON.parse(xhr.responseText);
40
- if(json.response.length === 0) {
+ if(JSON.stringify(json.response) == '{}') {
41
document.getElementById("short-url").textContent = "There was a problem with your url.";
42
-
+
43
44
}
45
else {
0 commit comments