This commit is contained in:
Eduard Urbach 2017-06-20 14:19:35 +02:00
parent 877b2433e4
commit ef6c5aaea0

View File

@ -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 => {