Skip to content

Commit 0c20707

Browse files
authored
Merge pull request umami-software#3489 from Sov3rain/master
Feature: Add keepalive option to tracker fetch request
2 parents d09b3cc + 42c0ccc commit 0c20707

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tracker/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
try {
152152
const res = await fetch(endpoint, {
153+
keepalive: true,
153154
method: 'POST',
154155
body: JSON.stringify({ type, payload }),
155156
headers: {

0 commit comments

Comments
 (0)