mirror of https://github.com/espruino/BangleApps
Load new JSON format
parent
c1a48e7b48
commit
f127bef66b
|
@ -322,7 +322,8 @@ function loadTokens() {
|
||||||
Puck.eval(`require('Storage').read(${JSON.stringify('authentiwatch.json')})`,data=>{
|
Puck.eval(`require('Storage').read(${JSON.stringify('authentiwatch.json')})`,data=>{
|
||||||
Util.hideModal();
|
Util.hideModal();
|
||||||
try {
|
try {
|
||||||
tokens = JSON.parse(data);
|
let saved = JSON.parse(data);
|
||||||
|
tokens = saved.data;
|
||||||
updateTokens();
|
updateTokens();
|
||||||
} catch {
|
} catch {
|
||||||
tokens = [];
|
tokens = [];
|
||||||
|
|
Loading…
Reference in New Issue