From f98320cb920d63eaa33c4cde8a3a6338a5d4f20d Mon Sep 17 00:00:00 2001 From: rohandebsarkar Date: Mon, 29 Aug 2022 18:03:09 +0530 Subject: [PATCH] Update `tracker/index.js`: `fetch()` with `keepalive` --- tracker/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tracker/index.js b/tracker/index.js index 1eb54d63..1e314dc2 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -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));