Skip to content

Commit

Permalink
enhance(data-usage): remove GA timing report on fetch note json
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Dec 25, 2024
1 parent 36e2381 commit 00c379a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/frontend/src/components/MkTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,13 @@ async function prepend(data) {
// チェックするプロパティはなんでも良い
// idOnlyが有効でid以外が存在しない場合は取得する
if (!data.visibility) {
const initiateTime = Date.now();
const res = await window.fetch(`/notes/${data.id}.json`, {
method: 'GET',
credentials: 'omit',
headers: {
'Authorization': 'anonymous',
'X-Client-Transaction-Id': generateClientTransactionId('misskey'),
},
}).then(res => {
if (instance.googleAnalyticsId) {
gtagTime({
name: 'api-get',
event_category: `/notes/${data.id}.json`,
value: Date.now() - initiateTime,
});
}
return res;
});
if (!res.ok) return;
note = await res.json();
Expand Down

0 comments on commit 00c379a

Please sign in to comment.