Fix bug in getRedirectUri()

This commit is contained in:
Yang Luo
2023-05-24 23:22:25 +08:00
parent 4d860525bf
commit c57c6e37dd

View File

@ -87,11 +87,12 @@ function getRedirectUri() {
return ""; return "";
} }
const res = token.split("&")[0]; let res = token.split("&")[0];
if (!res) { if (!res) {
return ""; return "";
} }
res = decodeURIComponent(res);
return res; return res;
} }