File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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+
7274export 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 }
You can’t perform that action at this time.
0 commit comments