diff --git a/scripts/actions.ts b/scripts/actions.ts index a43b3aa9..cfb460e2 100644 --- a/scripts/actions.ts +++ b/scripts/actions.ts @@ -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 => {