|
const req = new XMLHttpRequest(); |
|
req.open("GET", "https://discord.com/api/guilds/817075418054000661/widget.json"); |
|
req.onload = () => { |
|
const data = JSON.parse(req.responseText); |
|
discord.value.name = data.name; |
|
discord.value.invite = data.instant_invite; |
|
discord.value.count = data.presence_count; |
|
}; |
|
req.send(); |
This request is being identified as a tracker by Privacy Badger and thus blocked, resulting in the Discord Invite being unavailable. Took me a while to figure out what was causing this.
There should be a fallback to the actual discord invite link when the widget.json can't be requested.
Website/src/views/home/Home.vue
Lines 90 to 98 in 7cb35f1
This request is being identified as a tracker by Privacy Badger and thus blocked, resulting in the Discord Invite being unavailable. Took me a while to figure out what was causing this.
There should be a fallback to the actual discord invite link when the widget.json can't be requested.