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:34:36 +02:00
parent 25e6af81a4
commit c81a768000

View File

@ -161,11 +161,15 @@ function gbPebble() {
} else { //pass them silently
GBjs.sendAppMessage(JSON.stringify(dict));
}
return callbackAck;
if (callbackAck != undefined) {
callbackAck();
}
}
catch (e) {
GBjs.gbLog("sendAppMessage failed");
return callbackNack;
if (callbackNack != undefined) {
callbackNack();
}
}
}