1
0
Fork 0

Update groceryaug.html

master
fapeg 2022-10-27 01:48:27 +02:00 committed by GitHub
parent 6f7af1c3d8
commit 8c9558f2bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@
console.log(this.responseText);
var antwort =JSON.parse(this.responseText);
antwort_val = antwort["value"];
if(antwort_val == "undefined"){antwort_val = "Please enter an API key first!";}
console.log(antwort_val);
if(antwort_val == null){antwort_val = "Please enter an API key first!";}
document.getElementById('area').value = antwort_val;
}
});