Cleanup
This commit is contained in:
parent
877b2433e4
commit
ef6c5aaea0
@ -11,7 +11,7 @@ export function addAnimeToCollection(arn: AnimeNotifier, button: HTMLElement) {
|
|||||||
fetch("/api/animelist/" + userId + "/add", {
|
fetch("/api/animelist/" + userId + "/add", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: animeId,
|
body: animeId,
|
||||||
credentials: 'same-origin'
|
credentials: "same-origin"
|
||||||
})
|
})
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(body => {
|
.then(body => {
|
||||||
@ -35,7 +35,7 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen
|
|||||||
fetch("/api/animelist/" + userId + "/remove", {
|
fetch("/api/animelist/" + userId + "/remove", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: animeId,
|
body: animeId,
|
||||||
credentials: 'same-origin'
|
credentials: "same-origin"
|
||||||
})
|
})
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(body => {
|
.then(body => {
|
||||||
|
Loading…
Reference in New Issue
Block a user