Save in new JSON format too

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

View File

@ -258,7 +258,8 @@ function onSwipe(e) {
}
if (e == -1 && state.curtoken != -1 && tokens[state.curtoken].period <= 0) {
tokens[state.curtoken].period--;
require("Storage").writeJSON("authentiwatch.json", tokens);
let save={data:tokens,count:tokens.length};
require("Storage").writeJSON("authentiwatch.json", save);
state.nextTime = 0;
state.hide = 2;
draw();