Skip to content

Commit f77fcba

Browse files
Format frontend
1 parent 2769589 commit f77fcba

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

app/web/features/analytics/event-collector.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class EventCollector {
1919
private readonly frontendVersion: string;
2020

2121
constructor() {
22-
this.frontendVersion =
23-
process.env.NEXT_PUBLIC_VERSION ?? "unknown";
22+
this.frontendVersion = process.env.NEXT_PUBLIC_VERSION ?? "unknown";
2423

2524
if (typeof window !== "undefined") {
2625
document.addEventListener("visibilitychange", this.onVisibilityChange);
@@ -56,10 +55,7 @@ class EventCollector {
5655
this.timerId = null;
5756
}
5857
if (typeof window !== "undefined") {
59-
document.removeEventListener(
60-
"visibilitychange",
61-
this.onVisibilityChange,
62-
);
58+
document.removeEventListener("visibilitychange", this.onVisibilityChange);
6359
window.removeEventListener("beforeunload", this.onBeforeUnload);
6460
}
6561
this.flush();

app/web/features/analytics/provider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export default function AnalyticsProvider({
6161
const handleRouteChange = (url: string) => {
6262
const path = url.split("?")[0];
6363
const now = Date.now();
64-
const timeOnPreviousPage =
65-
(now - previousTimestampRef.current) / 1000;
64+
const timeOnPreviousPage = (now - previousTimestampRef.current) / 1000;
6665

6766
logEvent("page.viewed", {
6867
path,

0 commit comments

Comments
 (0)