Browse Source

CLDC-1618 Appease JS Standard

pull/973/head
Sam Collard 4 years ago
parent
commit
8dde97d901
  1. 6
      app/frontend/cookie-banner.js

6
app/frontend/cookie-banner.js

@ -8,15 +8,15 @@ if (cookieBannerEl) {
return return
} }
const body = new FormData(cookieFormEl) const body = new window.FormData(cookieFormEl)
body.append('cookies_form[accept_analytics_cookies]', e.target.value) body.append('cookies_form[accept_analytics_cookies]', e.target.value)
fetch(cookieFormEl.action, { fetch(cookieFormEl.action, {
method: 'PUT', method: 'PUT',
headers: { headers: {
Accept: 'application/json', Accept: 'application/json'
}, },
body, body
}) })
.then((res) => { .then((res) => {
if (res.status >= 200 && res.status < 300) { if (res.status >= 200 && res.status < 300) {

Loading…
Cancel
Save