mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:13:08 +02:00
chore: fix multiple spaces
This commit is contained in:
parent
353d144dfa
commit
550d154f19
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ function accepted() {
|
|||
state = "fetch-session-error";
|
||||
throw new Error("Callback URI doesn't match registered app");
|
||||
}
|
||||
const callbackUrl = session.app.callbackUrl.includes('elk.zone') ? new URL(session.app.callbackUrl) : new URL(redirectUri);
|
||||
const callbackUrl = session.app.callbackUrl.includes('elk.zone') ? new URL(session.app.callbackUrl) : new URL(redirectUri);
|
||||
callbackUrl.searchParams.append("code", session.token);
|
||||
if (getUrlParams().state) callbackUrl.searchParams.append("state", getUrlParams().state);
|
||||
location.href = callbackUrl.toString();
|
||||
|
|
Loading…
Reference in a new issue