1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +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 {
self.configurationValues = JSON.stringify(dict);
document.getElementById("jsondata").innerHTML=self.configurationValues;
return callbackAck;
if (callbackAck != undefined) {
callbackAck();
}
}
catch (e) {
GBjs.gbLog("sendAppMessage failed");
return callbackNack;
if (callbackNack != undefined) {
callbackNack();
}
}
}