feat!: add totp by link "otpauth" function implemented

This commit is contained in:
Savely Savianok
2024-12-30 01:05:30 +03:00
parent 4dbc3828fd
commit 14cc456d0e
3 changed files with 69 additions and 7 deletions

View File

@@ -15,8 +15,8 @@ Page(
app._options.globalData.TOTPS = x
this.initPage();
})
.catch((x) => {
app._options.globalData.TOTPS = localStorage.getItem('TOTPs')
.catch(() => {
app._options.globalData.TOTPS = localStorage.getItem('TOTPs') ?? []
this.initPage()
})
},