chore: prettier cleanup

This commit is contained in:
2025-07-24 14:39:02 +03:00
parent 3e037da6da
commit 69dddcebb5
20 changed files with 488 additions and 484 deletions

View File

@@ -13,23 +13,22 @@ Page(
this.getTOTPData()
.then((x) => {
app._options.globalData.TOTPS = JSON.parse(x) ?? [];
let localStorage = new LocalStorage();
localStorage.setItem(
"TOTPs",
JSON.stringify(app._options.globalData.TOTPS)
JSON.stringify(app._options.globalData.TOTPS),
);
this.initPage();
})
.catch((x) => {
console.log(`Init failed: ${x}`);
try{
try {
let localStorage = new LocalStorage();
app._options.globalData.TOTPS = JSON.parse(
localStorage.getItem("TOTPs", [])
localStorage.getItem("TOTPs", []),
);
}
catch{
} catch {
app._options.globalData.TOTPS = [];
}
this.initPage();
@@ -56,5 +55,5 @@ Page(
method: "totps",
});
},
})
}),
);