Trial-and-erro: call repaint

master
Martin Zwigl 2025-03-16 19:20:09 +01:00
parent 19bbe291a7
commit 1bdded1549
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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",