upd: exclude elk from check

This commit is contained in:
Mar0xy 2023-09-24 22:23:26 +02:00
parent fa30404048
commit 4d3dee7022
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -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");
} }