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

This commit is contained in:
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

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));