mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:23:08 +02:00
upd: exclude elk from check
This commit is contained in:
parent
fa30404048
commit
4d3dee7022
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ function accepted() {
|
||||||
const isMastodon = !!getUrlParams().mastodon;
|
const isMastodon = !!getUrlParams().mastodon;
|
||||||
if (session && session.app.callbackUrl && isMastodon) {
|
if (session && session.app.callbackUrl && isMastodon) {
|
||||||
const redirectUri = decodeURIComponent(getUrlParams().redirect_uri);
|
const redirectUri = decodeURIComponent(getUrlParams().redirect_uri);
|
||||||
if (!session.app.callbackUrl.split("\n").includes(redirectUri)) {
|
if (!session.app.callbackUrl.includes('elk.zone') && !session.app.callbackUrl.split("\n").includes(redirectUri)) {
|
||||||
state = "fetch-session-error";
|
state = "fetch-session-error";
|
||||||
throw new Error("Callback URI doesn't match registered app");
|
throw new Error("Callback URI doesn't match registered app");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue