1
0
Fork 0

Try different JSON format

master
Andrew Gregory 2021-12-01 00:09:52 +08:00 committed by GitHub
parent a20a2e4292
commit c1a48e7b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -333,7 +333,8 @@ function loadTokens() {
*/
function saveTokens() {
Util.showModal('Saving...');
Puck.write(`\x10require('Storage').write(${JSON.stringify('authentiwatch.json')},${JSON.stringify(tokens)})\n`,()=>{
let save={data:tokens,count:tokens.length};
Puck.write(`\x10require('Storage').write(${JSON.stringify('authentiwatch.json')},${JSON.stringify(save)})\n`,()=>{
Util.hideModal();
});
}