1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

Pebble: call the callbacks, do not return them

This commit is contained in:
Daniele Gobbetti 2017-07-28 18:33:02 +02:00
parent 7f5aeb6ab1
commit 8353026c08

View File

@ -155,11 +155,15 @@ function gbPebble() {
try { try {
self.configurationValues = JSON.stringify(dict); self.configurationValues = JSON.stringify(dict);
document.getElementById("jsondata").innerHTML=self.configurationValues; document.getElementById("jsondata").innerHTML=self.configurationValues;
return callbackAck; if (callbackAck != undefined) {
callbackAck();
}
} }
catch (e) { catch (e) {
GBjs.gbLog("sendAppMessage failed"); GBjs.gbLog("sendAppMessage failed");
return callbackNack; if (callbackNack != undefined) {
callbackNack();
}
} }
} }