File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
app/web/features/analytics Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments