mirror of https://github.com/espruino/BangleApps
Fix cards download
parent
18686d5ff5
commit
d469765f36
|
@ -39,7 +39,7 @@
|
||||||
headers: { "Content-Type": "application/json" }
|
headers: { "Content-Type": "application/json" }
|
||||||
}).then(data=>{
|
}).then(data=>{
|
||||||
var cardsJSON = JSON.parse(data.resp);
|
var cardsJSON = JSON.parse(data.resp);
|
||||||
storage.write(dataFile, JSON.stringify(result));
|
storage.write(dataFile, JSON.stringify(cardsJSON));
|
||||||
E.showMessage('i: downloaded');
|
E.showMessage('i: downloaded');
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
Loading…
Reference in New Issue