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", {
|
||||
method: "POST",
|
||||
body: animeId,
|
||||
credentials: 'same-origin'
|
||||
credentials: "same-origin"
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then(body => {
|
||||
@ -35,7 +35,7 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen
|
||||
fetch("/api/animelist/" + userId + "/remove", {
|
||||
method: "POST",
|
||||
body: animeId,
|
||||
credentials: 'same-origin'
|
||||
credentials: "same-origin"
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then(body => {
|
||||
|
Loading…
Reference in New Issue
Block a user