Fix error when no connection

This commit is contained in:
2024-11-12 20:29:30 +01:00
parent 3b3b6583d9
commit b7e734ac10

View File

@@ -137,8 +137,13 @@ function sendToZoblak() {
"body": JSON.stringify(payload) "body": JSON.stringify(payload)
}, },
function(result) { function(result) {
if (result) {
print("server says: ", result.code); print("server says: ", result.code);
} }
else {
print("There is no server response present. Check connection!")
}
}
); );
} }