Skip to content

Commit

Permalink
let's do this instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 committed Dec 1, 2024
1 parent dccec93 commit 4169c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function getDiscordStats(discord) {
}
}
const WIDGET_URL = "https://discord.com/api/guilds/164734812668559360/widget.json"
export default {
components: {
ServerInfo,
Expand All @@ -81,7 +83,7 @@ export default {
return {};
});
const { data: discordData } = await app.$axios
.get("https://discord.com/api/guilds/164734812668559360/widget.json")
.get(WIDGET_URL)
.catch(err => {
console.error(err);
return {};
Expand Down Expand Up @@ -155,7 +157,7 @@ export default {
});
const { data: discordData } = await this.$axios.get(
"https://discordapp.com/api/servers/164734812668559360/widget.json",
WIDGET_URL,
{
progress: false,
}
Expand Down

0 comments on commit 4169c70

Please sign in to comment.