Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/FrankerFaceZ/Add-Ons
Browse files Browse the repository at this point in the history
  • Loading branch information
SirStendec committed Oct 22, 2024
2 parents 8aed8b8 + 28a120a commit e29ea0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/7tv-emotes/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main",
"clips"
],
"version": "1.4.24",
"version": "1.4.25",
"short_name": "7TV",
"name": "7TV Emotes",
"author": "Melonify",
Expand All @@ -14,5 +14,5 @@
"website": "https://7tv.app",
"settings": "add_ons.7tv_emotes",
"created": "2021-07-12T23:18:04.000Z",
"updated": "2024-10-01T15:52:22.148Z"
"updated": "2024-10-21T11:31:14.721Z"
}
8 changes: 7 additions & 1 deletion src/7tv-emotes/modules/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export default class API extends FrankerFaceZ.utilities.module.Module {
}

async requestJSON(route, options = {}) {
const response = await this.makeRequest(route, options);
const response = await this.makeRequest(route,
{
...options,
headers: {
'Content-Type': 'application/json'
}
});

if (response.ok) {
const json = await response.json();
Expand Down

0 comments on commit e29ea0d

Please sign in to comment.