From 8072ba887812cc4fcec7db4bff5afa5bfc4fb69f Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 31 Jul 2024 21:37:02 +0800 Subject: [PATCH] fix: use true ua for stats --- lib/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index 8ee4d3956..11bd26c9e 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -721,11 +721,11 @@ calculateValue(); } if (!envs.DISABLE_UMAMI && envs.NODE_ENV === 'production') { - ofetch(`https://umami.rss3.io/api/send`, { + ofetch('https://umami.rss3.io/api/send', { method: 'POST', headers: { 'content-type': 'application/json', - 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36', + 'user-agent': TRUE_UA, }, body: JSON.stringify({ payload: {