From 8353026c08eccc103c3985ea865b4790750d55a0 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Fri, 28 Jul 2017 18:33:02 +0200 Subject: [PATCH] Pebble: call the callbacks, do not return them --- .../main/assets/app_config/js/gadgetbridge_boilerplate.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js index 5e80f52f8..0f01a00d8 100644 --- a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js +++ b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js @@ -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(); + } } }