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,7 +137,12 @@ function sendToZoblak() {
"body": JSON.stringify(payload) "body": JSON.stringify(payload)
}, },
function(result) { function(result) {
print("server says: ", result.code); if (result) {
print("server says: ", result.code);
}
else {
print("There is no server response present. Check connection!")
}
} }
); );