async function addToCart (productId) {
return fetch("https://"+location.host+"/api/v1/graphql", {
"headers": {
"apollographql-client-name": "pwa-client",
"apollographql-client-version": graphQlVersion,
"content-type": "application/json",
"x-flow-id": uuidv4(),
}, "body": "{\"operationName\":\"AddProduct\",\"variables\":{\"items\":[{\"productId\":\""+productId+"\",\"outletId\":null,\"quantity\":5,\"serviceId\":null,\"warrantyId\":null}]},\"extensions\":{\"pwa\":{\"salesLine\":\""+(location.host === 'www.saturn.de' ? 'Saturn':'Media')+"\",\"country\":\""+"DE"+"\",\"language\":\"de\"},\"persistedQuery\":{\"version\":1,\"sha256Hash\":\"404e7401c3363865cc3d92d5c5454ef7d382128c014c75f5fc39ed7ce549e2b9\"}}}", "method": "POST", "mode": "cors", "credentials": "include" });
}