mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Pebble: call the callbacks, do not return them
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user