upd: exclude elk from check
This commit is contained in:
parent
fa30404048
commit
4d3dee7022
@ -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 New Issue
Block a user