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;
if (session && session.app.callbackUrl && isMastodon) {
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";
throw new Error("Callback URI doesn't match registered app");
}