Skip to content

Commit 2d597b3

Browse files
committed
Fe update
1 parent cf314b6 commit 2d597b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/home/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
xhr.onreadystatechange = function () {
3838
if (xhr.readyState === 4) {
3939
var json = JSON.parse(xhr.responseText);
40-
if(json.response.length === 0) {
40+
if(JSON.stringify(json.response) == '{}') {
4141
document.getElementById("short-url").textContent = "There was a problem with your url.";
42-
42+
4343

4444
}
4545
else {

0 commit comments

Comments
 (0)