fix: use true ua for stats

This commit is contained in:
Tony
2024-07-31 21:37:02 +08:00
parent 74b8380f98
commit 8072ba8878
+2 -2
View File
@@ -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: {