Trial-and-erro: call repaint
parent
19bbe291a7
commit
1bdded1549
|
|
@ -56,6 +56,8 @@ function getChart(repeatable) {
|
|||
const apiData = JSON.parse(data.resp);
|
||||
tknChrtData = apiData.map(innerArray => innerArray[1]);
|
||||
currLoadMsg = "";
|
||||
//
|
||||
layout.render(layout.tknGraph)
|
||||
})
|
||||
.catch(err => {
|
||||
console.error("HTTP request failed:", err);
|
||||
|
|
@ -95,6 +97,7 @@ function draw() {
|
|||
//
|
||||
layout.tknName.label = (csTokens[ticker]).toUpperCase();
|
||||
layout.loadMsg.label = currLoadMsg;
|
||||
//
|
||||
layout.render();
|
||||
|
||||
// schedule a draw for the next minute
|
||||
|
|
@ -108,7 +111,7 @@ function draw() {
|
|||
// update time and draw
|
||||
g.clear();
|
||||
draw();
|
||||
getChart(true);
|
||||
getChart(false);
|
||||
|
||||
//
|
||||
Bangle.on("swipe", swipeHandler);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ "id": "coin_info",
|
||||
"name": "Crypto-Coins Info",
|
||||
"shortName":"Coins Info",
|
||||
"version": "0.06.32",
|
||||
"version": "0.06.33",
|
||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||
"icon": "app.png",
|
||||
"tags": "clkinfo",
|
||||
|
|
|
|||
Loading…
Reference in New Issue