diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-10-18 15:16:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-10-18 15:16:23 +0200 |
| commit | ebaec1ad662c2050726d0d43ba60db63a3f10d26 (patch) | |
| tree | 8ff888d5adccd43eb37289a8dda1ffbfedc5c05a /src/utils/shoelace.js | |
| parent | 526f2d2c9f6c5ff8867cb0c645326e0a8f7991ae (diff) | |
Diffstat (limited to 'src/utils/shoelace.js')
| -rw-r--r-- | src/utils/shoelace.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/utils/shoelace.js b/src/utils/shoelace.js index 63b9c79..d79aee7 100644 --- a/src/utils/shoelace.js +++ b/src/utils/shoelace.js @@ -7,7 +7,7 @@ * footpring("details", { id: 3 }) */ -const FINAL_DATE = "2021-12-01T00:00:00"; +const FINAL_DATE = "2021-11-01T00:00:00"; const SHOEBOX_CODE = "no6092"; const SHOELACE_CODE = "shoelace"; @@ -68,14 +68,14 @@ async function requestWithMethod(method, href, data) { mode: "cors", }; - if (method === "GET") { - if (data) { - urlObject.search = new URLSearchParams(data).toString(); - } - } else { - requestOptions.headers["Content-Type"] = "application/json"; - requestOptions.body = JSON.stringify(data); - } + // if (method === "GET") { + // if (data) { + // urlObject.search = new URLSearchParams(data).toString(); + // } + // } else { + requestOptions.headers["Content-Type"] = "application/json"; + requestOptions.body = JSON.stringify(data); + // } let response; response = await fetch(urlObject, requestOptions); |
