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:
parent
25e6af81a4
commit
c81a768000
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user