Skip to content

Commit 4169c70

Browse files
committed
let's do this instead
1 parent dccec93 commit 4169c70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client/pages/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function getDiscordStats(discord) {
6969
}
7070
}
7171
72+
const WIDGET_URL = "https://discord.com/api/guilds/164734812668559360/widget.json"
73+
7274
export default {
7375
components: {
7476
ServerInfo,
@@ -81,7 +83,7 @@ export default {
8183
return {};
8284
});
8385
const { data: discordData } = await app.$axios
84-
.get("https://discord.com/api/guilds/164734812668559360/widget.json")
86+
.get(WIDGET_URL)
8587
.catch(err => {
8688
console.error(err);
8789
return {};
@@ -155,7 +157,7 @@ export default {
155157
});
156158
157159
const { data: discordData } = await this.$axios.get(
158-
"https://discordapp.com/api/servers/164734812668559360/widget.json",
160+
WIDGET_URL,
159161
{
160162
progress: false,
161163
}

0 commit comments

Comments
 (0)