mirror of
https://github.com/NohamR/BetterYGG.git
synced 2026-01-10 08:18:19 +00:00
[1.2.3] Fix Discord Post Content-Type
This commit is contained in:
@@ -185,7 +185,7 @@ function addToDiscord() {
|
|||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', discordWebhookUrl);
|
xhr.open('POST', discordWebhookUrl);
|
||||||
xhr.setRequestHeader('Content-Type', 'multipart/form-data');
|
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
if (xhr.status === 204) {
|
if (xhr.status === 204) {
|
||||||
showAlert('valid_form_alert');
|
showAlert('valid_form_alert');
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "BetterYGG",
|
"name": "BetterYGG",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!",
|
"description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!",
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "img/flexgg16.png",
|
"16": "img/flexgg16.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user