Load new JSON format

pull/972/head
Andrew Gregory 2021-12-01 00:14:47 +08:00 committed by GitHub
parent c1a48e7b48
commit f127bef66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ function loadTokens() {
Puck.eval(`require('Storage').read(${JSON.stringify('authentiwatch.json')})`,data=>{
Util.hideModal();
try {
tokens = JSON.parse(data);
let saved = JSON.parse(data);
tokens = saved.data;
updateTokens();
} catch {
tokens = [];