From d6f61cfd4405e0c6ce62e8c4f19851dafc85ea14 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 26 Apr 2024 19:21:39 -1000 Subject: [PATCH] fix: :bug: Fix application name always showing up as "Soapbox" when signing in --- components/sidebars/navigation.vue | 3 +-- constants.ts | 12 ------------ pages/oauth/consent.vue | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 constants.ts diff --git a/components/sidebars/navigation.vue b/components/sidebars/navigation.vue index 0ff3676..ca055d1 100644 --- a/components/sidebars/navigation.vue +++ b/components/sidebars/navigation.vue @@ -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; }; diff --git a/constants.ts b/constants.ts deleted file mode 100644 index 5ef419d..0000000 --- a/constants.ts +++ /dev/null @@ -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/", - }, -]; diff --git a/pages/oauth/consent.vue b/pages/oauth/consent.vue index 5f44610..187a7b6 100644 --- a/pages/oauth/consent.vue +++ b/pages/oauth/consent.vue @@ -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;