Fix error when no connection
This commit is contained in:
@@ -137,7 +137,12 @@ function sendToZoblak() {
|
||||
"body": JSON.stringify(payload)
|
||||
},
|
||||
function(result) {
|
||||
print("server says: ", result.code);
|
||||
if (result) {
|
||||
print("server says: ", result.code);
|
||||
}
|
||||
else {
|
||||
print("There is no server response present. Check connection!")
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user