Update `tracker/index.js`: `fetch()` with `keepalive`

pull/1471/head
rohandebsarkar 2022-08-29 18:03:09 +05:30
parent f4e0da481e
commit f98320cb92
No known key found for this signature in database
GPG Key ID: 3DA3229799D1A181
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@
method: 'POST',
body: JSON.stringify({ type, payload }),
headers: assign({ 'Content-Type': 'application/json' }, { ['x-umami-cache']: cache }),
keepalive: true,
})
.then(res => res.text())
.then(text => (cache = text));