Slack notify

This commit is contained in:
Marko
2023-06-14 17:02:24 +02:00
parent 0579a62931
commit 30a8e73f21
33 changed files with 1334 additions and 1137 deletions

View File

@@ -25,12 +25,13 @@ function updateURL() {
history.replaceState(null, null, newSearch);
}
function graphQLFetcher(graphQLParams) {
function graphQLFetcher(graphQLParams, {headers}) {
return fetch(entrypoint, {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
'Content-Type': 'application/json',
...headers
},
body: JSON.stringify(graphQLParams),
credentials: 'include'