feat: added validation for TOTP link

This commit is contained in:
Savely Savianok
2024-12-30 02:08:50 +03:00
parent 3c5dc5276d
commit 7d989fed8f
2 changed files with 12 additions and 3 deletions

View File

@@ -72,8 +72,13 @@ function GetTOTPList(storage){
placeholder: "otpauth://",
label: "Change OTP link",
onChange: (changes) => {
try{
storage[elementId] = getTOTPByLink(changes)
updateStorage(storage)
}
catch(err){
console.log(err)
}
},
labelStyle: {
backgroundColor: "#14213D",