diff --git a/app.json b/app.json index 3050e55..12119f3 100644 --- a/app.json +++ b/app.json @@ -6,7 +6,7 @@ "appType": "app", "version": { "code": 1, - "name": "1.1.2" + "name": "1.1.3" }, "icon": "icon.png", "vender": "zepp", diff --git a/package.json b/package.json index f583b22..d9a0d69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "totpfit", - "version": "1.1.2", + "version": "1.1.3", "description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4", "main": "app.js", "author": "Lisoveliy", diff --git a/setting/utils/queryParser.js b/setting/utils/queryParser.js index ed1a61c..985dcde 100644 --- a/setting/utils/queryParser.js +++ b/setting/utils/queryParser.js @@ -24,8 +24,8 @@ export function getTOTPByLink(link) { issuer = args[3].split("issuer=")[1]?.split("&")[0] } - issuer = issuer.replace("%20", " "); - client = client.replace("%20", " "); + issuer = decodeURIComponent(issuer); + client = decodeURIComponent(client); return new TOTP( secret, @@ -37,6 +37,7 @@ export function getTOTPByLink(link) { getHashType(algorithm) ); } catch (err) { + console.log(err) return null; } }