fix: 🐛 Fix application name always showing up as "Soapbox" when signing in

This commit is contained in:
Jesse Wierzbinski 2024-04-26 19:21:39 -10:00
parent 4ae54b3af9
commit d6f61cfd44
No known key found for this signature in database
3 changed files with 2 additions and 15 deletions

View file

@ -98,7 +98,6 @@ const signIn = async () => {
} else {
window.location.href = url;
}
};
const signOut = async () => {
@ -116,7 +115,7 @@ const signOut = async () => {
tokenData.value.access_token,
tokenData.value.access_token,
)
.catch(() => { });
.catch(() => {});
tokenData.value = null;
};

View file

@ -1,12 +0,0 @@
export const recommendedClients = [
{
name: "Soapbox",
icon: "https://soapbox.pub/assets/logo.svg",
link: "https://fe.soapbox.pub/",
},
{
name: "Megalodon",
icon: "https://sk22.github.io/megalodon/mastodon/src/main/res/mipmap-xhdpi/ic_launcher_round.png",
link: "https://sk22.github.io/megalodon/",
},
];

View file

@ -96,7 +96,7 @@ import { useRoute } from "vue-router";
const url = useRequestURL();
const query = useRoute().query;
const application = "Soapbox"; //query.application;
const application = query.application;
const website = query.website
? decodeURIComponent(query.website as string)
: null;