mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 00:07:01 -05:00
Compare commits
2 Commits
783284a47a
...
116eaa2635
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
116eaa2635 | ||
|
|
e773ca58d1 |
@@ -18,6 +18,7 @@ import { EntityErrorBoundary } from "@/components/error/EntityErrorBoundary";
|
|||||||
import { breadcrumb } from "@/lib/errorBreadcrumbs";
|
import { breadcrumb } from "@/lib/errorBreadcrumbs";
|
||||||
import { handleError } from "@/lib/errorHandler";
|
import { handleError } from "@/lib/errorHandler";
|
||||||
import { RetryStatusIndicator } from "@/components/ui/retry-status-indicator";
|
import { RetryStatusIndicator } from "@/components/ui/retry-status-indicator";
|
||||||
|
import { NetworkStatusBanner } from "@/components/ui/network-status-banner";
|
||||||
|
|
||||||
// Core routes (eager-loaded for best UX)
|
// Core routes (eager-loaded for best UX)
|
||||||
import Index from "./pages/Index";
|
import Index from "./pages/Index";
|
||||||
@@ -134,6 +135,7 @@ function AppContent(): React.JSX.Element {
|
|||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<NavigationTracker />
|
<NavigationTracker />
|
||||||
<LocationAutoDetectProvider />
|
<LocationAutoDetectProvider />
|
||||||
|
<NetworkStatusBanner />
|
||||||
<RetryStatusIndicator />
|
<RetryStatusIndicator />
|
||||||
<Toaster />
|
<Toaster />
|
||||||
<Sonner />
|
<Sonner />
|
||||||
|
|||||||
83
src/components/ui/network-status-banner.tsx
Normal file
83
src/components/ui/network-status-banner.tsx
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { XCircle, Loader2 } from 'lucide-react';
|
||||||
|
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
|
||||||
|
import { useCircuitBreakerStatus } from '@/hooks/useCircuitBreakerStatus';
|
||||||
|
import { CircuitState } from '@/lib/circuitBreaker';
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
|
export function NetworkStatusBanner() {
|
||||||
|
const { state, failureCount, isOpen, isHalfOpen } = useCircuitBreakerStatus();
|
||||||
|
const [countdown, setCountdown] = useState(60);
|
||||||
|
|
||||||
|
// Countdown for next retry attempt (when OPEN)
|
||||||
|
useEffect(() => {
|
||||||
|
if (!isOpen) return;
|
||||||
|
|
||||||
|
setCountdown(60); // Reset timeout from circuit breaker config
|
||||||
|
const interval = setInterval(() => {
|
||||||
|
setCountdown(prev => Math.max(0, prev - 1));
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
return () => clearInterval(interval);
|
||||||
|
}, [isOpen]);
|
||||||
|
|
||||||
|
// Don't show if circuit is closed
|
||||||
|
if (state === CircuitState.CLOSED) return null;
|
||||||
|
|
||||||
|
// OPEN state - critical error
|
||||||
|
if (isOpen) {
|
||||||
|
return (
|
||||||
|
<Alert
|
||||||
|
role="alert"
|
||||||
|
aria-live="assertive"
|
||||||
|
aria-atomic="true"
|
||||||
|
variant="destructive"
|
||||||
|
className={cn(
|
||||||
|
"rounded-none border-x-0 border-t-0",
|
||||||
|
"animate-in slide-in-from-top-4 duration-300",
|
||||||
|
"bg-destructive/90 backdrop-blur-sm"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<XCircle className="h-5 w-5 animate-pulse" />
|
||||||
|
<AlertTitle className="font-semibold text-lg">
|
||||||
|
Database Unavailable
|
||||||
|
</AlertTitle>
|
||||||
|
<AlertDescription className="text-sm mt-1">
|
||||||
|
Our systems detected a service outage. <strong>Data and authentication are temporarily unavailable.</strong>
|
||||||
|
{' '}Retrying automatically... (next attempt in {countdown}s)
|
||||||
|
{failureCount > 0 && (
|
||||||
|
<span className="block mt-1 text-xs opacity-80">
|
||||||
|
{failureCount} failed connection attempts detected
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// HALF_OPEN state - testing recovery
|
||||||
|
if (isHalfOpen) {
|
||||||
|
return (
|
||||||
|
<Alert
|
||||||
|
role="alert"
|
||||||
|
aria-live="polite"
|
||||||
|
aria-atomic="true"
|
||||||
|
className={cn(
|
||||||
|
"rounded-none border-x-0 border-t-0",
|
||||||
|
"animate-in slide-in-from-top-4 duration-300",
|
||||||
|
"bg-amber-500/20 dark:bg-amber-500/30 border-amber-500"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Loader2 className="h-5 w-5 animate-spin text-amber-600 dark:text-amber-400" />
|
||||||
|
<AlertTitle className="font-semibold text-amber-900 dark:text-amber-100">
|
||||||
|
Connection Unstable
|
||||||
|
</AlertTitle>
|
||||||
|
<AlertDescription className="text-sm text-amber-800 dark:text-amber-200 mt-1">
|
||||||
|
Testing database connection... Some features may be slow or temporarily unavailable.
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
54
src/hooks/useCircuitBreakerStatus.ts
Normal file
54
src/hooks/useCircuitBreakerStatus.ts
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import { useState, useEffect } from 'react';
|
||||||
|
import { supabaseCircuitBreaker, CircuitState } from '@/lib/circuitBreaker';
|
||||||
|
import { logger } from '@/lib/logger';
|
||||||
|
|
||||||
|
export function useCircuitBreakerStatus() {
|
||||||
|
const [state, setState] = useState<CircuitState>(CircuitState.CLOSED);
|
||||||
|
const [failureCount, setFailureCount] = useState(0);
|
||||||
|
const [lastStateChange, setLastStateChange] = useState<Date>(new Date());
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// Check immediately on mount
|
||||||
|
const checkState = () => {
|
||||||
|
const currentState = supabaseCircuitBreaker.getState();
|
||||||
|
const currentFailures = supabaseCircuitBreaker.getFailureCount();
|
||||||
|
|
||||||
|
setState(prevState => {
|
||||||
|
if (prevState !== currentState) {
|
||||||
|
setLastStateChange(new Date());
|
||||||
|
|
||||||
|
// Log state changes for monitoring
|
||||||
|
logger.info('Circuit breaker state changed', {
|
||||||
|
from: prevState,
|
||||||
|
to: currentState,
|
||||||
|
failureCount: currentFailures
|
||||||
|
});
|
||||||
|
|
||||||
|
// Emit custom event for other components
|
||||||
|
window.dispatchEvent(new CustomEvent('circuit-breaker-state-change', {
|
||||||
|
detail: { state: currentState, failureCount: currentFailures }
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
return currentState;
|
||||||
|
});
|
||||||
|
|
||||||
|
setFailureCount(currentFailures);
|
||||||
|
};
|
||||||
|
|
||||||
|
checkState();
|
||||||
|
|
||||||
|
// Poll every 5 seconds
|
||||||
|
const interval = setInterval(checkState, 5000);
|
||||||
|
|
||||||
|
return () => clearInterval(interval);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return {
|
||||||
|
state,
|
||||||
|
failureCount,
|
||||||
|
lastStateChange,
|
||||||
|
isOpen: state === CircuitState.OPEN,
|
||||||
|
isHalfOpen: state === CircuitState.HALF_OPEN,
|
||||||
|
isClosed: state === CircuitState.CLOSED
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -98,6 +98,13 @@ export class CircuitBreaker {
|
|||||||
logger.info('Circuit breaker CLOSED - service recovered', {
|
logger.info('Circuit breaker CLOSED - service recovered', {
|
||||||
successCount: this.successCount
|
successCount: this.successCount
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Emit event for UI components
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window.dispatchEvent(new CustomEvent('circuit-breaker-closed', {
|
||||||
|
detail: { successCount: this.successCount }
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,6 +129,16 @@ export class CircuitBreaker {
|
|||||||
monitoringWindow: this.config.monitoringWindow,
|
monitoringWindow: this.config.monitoringWindow,
|
||||||
resetTimeout: this.config.resetTimeout
|
resetTimeout: this.config.resetTimeout
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Emit event for UI components
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window.dispatchEvent(new CustomEvent('circuit-breaker-opened', {
|
||||||
|
detail: {
|
||||||
|
failures: this.failures.length,
|
||||||
|
threshold: this.config.failureThreshold
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import type { CompanyDatabaseRecord, TimelineEventDatabaseRecord } from '@/types
|
|||||||
import { logger } from './logger';
|
import { logger } from './logger';
|
||||||
import { handleError } from './errorHandler';
|
import { handleError } from './errorHandler';
|
||||||
import type { TimelineEventFormData, EntityType } from '@/types/timeline';
|
import type { TimelineEventFormData, EntityType } from '@/types/timeline';
|
||||||
|
import { breadcrumb } from './errorBreadcrumbs';
|
||||||
import {
|
import {
|
||||||
validateParkCreateFields,
|
validateParkCreateFields,
|
||||||
validateRideCreateFields,
|
validateRideCreateFields,
|
||||||
@@ -202,20 +203,42 @@ async function submitCompositeCreation(
|
|||||||
dependencies: CompositeSubmissionDependency[],
|
dependencies: CompositeSubmissionDependency[],
|
||||||
userId: string
|
userId: string
|
||||||
): Promise<{ submitted: boolean; submissionId: string }> {
|
): Promise<{ submitted: boolean; submissionId: string }> {
|
||||||
|
try {
|
||||||
|
breadcrumb.userAction('Start composite submission', 'submitCompositeCreation', {
|
||||||
|
primaryType: primaryEntity.type,
|
||||||
|
dependencyCount: dependencies.length,
|
||||||
|
userId
|
||||||
|
});
|
||||||
|
|
||||||
// Check if user is banned
|
// Check if user is banned
|
||||||
const { data: profile } = await supabase
|
breadcrumb.apiCall('profiles', 'SELECT');
|
||||||
|
try {
|
||||||
|
const { data: profile, error } = await supabase
|
||||||
.from('profiles')
|
.from('profiles')
|
||||||
.select('banned')
|
.select('banned')
|
||||||
.eq('user_id', userId)
|
.eq('user_id', userId)
|
||||||
.single();
|
.single();
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
throw new Error(`Failed to check user status: ${error.message}`);
|
||||||
|
}
|
||||||
|
|
||||||
if (profile?.banned) {
|
if (profile?.banned) {
|
||||||
throw new Error('Account suspended. Contact support for assistance.');
|
throw new Error('Account suspended. Contact support for assistance.');
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
throw error instanceof Error ? error : new Error(`User check failed: ${String(error)}`);
|
||||||
|
}
|
||||||
|
|
||||||
// Upload all pending images for all entities
|
// Upload all pending images for all entities
|
||||||
|
breadcrumb.userAction('Upload images', 'submitCompositeCreation', {
|
||||||
|
totalImages: dependencies.reduce((sum, dep) => sum + (dep.data.images?.uploaded?.length || 0), 0) +
|
||||||
|
(primaryEntity.data.images?.uploaded?.length || 0)
|
||||||
|
});
|
||||||
|
|
||||||
const uploadedEntities = await Promise.all([
|
const uploadedEntities = await Promise.all([
|
||||||
...dependencies.map(async (dep) => {
|
...dependencies.map(async (dep, index) => {
|
||||||
|
try {
|
||||||
if (dep.data.images?.uploaded && dep.data.images.uploaded.length > 0) {
|
if (dep.data.images?.uploaded && dep.data.images.uploaded.length > 0) {
|
||||||
const uploadedImages = await uploadPendingImages(dep.data.images.uploaded);
|
const uploadedImages = await uploadPendingImages(dep.data.images.uploaded);
|
||||||
return {
|
return {
|
||||||
@@ -227,8 +250,15 @@ async function submitCompositeCreation(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
return dep;
|
return dep;
|
||||||
|
} catch (error) {
|
||||||
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||||
|
throw new Error(
|
||||||
|
`Failed to upload images for ${dep.type} "${dep.data.name || 'unnamed'}": ${errorMsg}`
|
||||||
|
);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
(async () => {
|
(async () => {
|
||||||
|
try {
|
||||||
if (primaryEntity.data.images?.uploaded && primaryEntity.data.images.uploaded.length > 0) {
|
if (primaryEntity.data.images?.uploaded && primaryEntity.data.images.uploaded.length > 0) {
|
||||||
const uploadedImages = await uploadPendingImages(primaryEntity.data.images.uploaded);
|
const uploadedImages = await uploadPendingImages(primaryEntity.data.images.uploaded);
|
||||||
return {
|
return {
|
||||||
@@ -240,12 +270,32 @@ async function submitCompositeCreation(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
return primaryEntity;
|
return primaryEntity;
|
||||||
|
} catch (error) {
|
||||||
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||||
|
throw new Error(
|
||||||
|
`Failed to upload images for ${primaryEntity.type} "${primaryEntity.data.name || 'unnamed'}": ${errorMsg}`
|
||||||
|
);
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const uploadedDependencies = uploadedEntities.slice(0, -1) as CompositeSubmissionDependency[];
|
const uploadedDependencies = uploadedEntities.slice(0, -1) as CompositeSubmissionDependency[];
|
||||||
const uploadedPrimary = uploadedEntities[uploadedEntities.length - 1] as typeof primaryEntity;
|
const uploadedPrimary = uploadedEntities[uploadedEntities.length - 1] as typeof primaryEntity;
|
||||||
|
|
||||||
|
// Validate dependencies structure
|
||||||
|
breadcrumb.stateChange('Validating dependencies', {
|
||||||
|
dependencyCount: uploadedDependencies.length
|
||||||
|
});
|
||||||
|
|
||||||
|
for (const dep of uploadedDependencies) {
|
||||||
|
if (!dep.type) throw new Error('Dependency missing type');
|
||||||
|
if (!dep.tempId) throw new Error('Dependency missing tempId');
|
||||||
|
if (!dep.data) throw new Error('Dependency missing data');
|
||||||
|
if (dep.type === 'company' && !dep.companyType) {
|
||||||
|
throw new Error(`Company dependency "${dep.data.name || 'unnamed'}" missing companyType`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Build submission items array with dependencies first
|
// Build submission items array with dependencies first
|
||||||
const submissionItems: any[] = [];
|
const submissionItems: any[] = [];
|
||||||
const tempIdMap = new Map<string, number>(); // Maps tempId to order_index
|
const tempIdMap = new Map<string, number>(); // Maps tempId to order_index
|
||||||
@@ -371,6 +421,7 @@ async function submitCompositeCreation(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use RPC to create submission with items atomically with retry logic
|
// Use RPC to create submission with items atomically with retry logic
|
||||||
|
breadcrumb.apiCall('create_submission_with_items', 'RPC');
|
||||||
const { withRetry } = await import('./retryHelpers');
|
const { withRetry } = await import('./retryHelpers');
|
||||||
const { toast } = await import('@/hooks/use-toast');
|
const { toast } = await import('@/hooks/use-toast');
|
||||||
|
|
||||||
@@ -463,7 +514,24 @@ async function submitCompositeCreation(
|
|||||||
throw error;
|
throw error;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
breadcrumb.stateChange('Composite submission successful', {
|
||||||
|
submissionId: result
|
||||||
|
});
|
||||||
|
|
||||||
return { submitted: true, submissionId: result };
|
return { submitted: true, submissionId: result };
|
||||||
|
} catch (error) {
|
||||||
|
// Ensure error is always an Error instance with context
|
||||||
|
const enrichedError = error instanceof Error
|
||||||
|
? error
|
||||||
|
: new Error(`Composite submission failed: ${String(error)}`);
|
||||||
|
|
||||||
|
// Attach metadata for better debugging
|
||||||
|
(enrichedError as any).originalError = error;
|
||||||
|
(enrichedError as any).primaryType = primaryEntity?.type;
|
||||||
|
(enrichedError as any).dependencyCount = dependencies?.length;
|
||||||
|
|
||||||
|
throw enrichedError;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export const handleError = (
|
|||||||
let errorMessage: string;
|
let errorMessage: string;
|
||||||
let stack: string | undefined;
|
let stack: string | undefined;
|
||||||
let errorName = 'UnknownError';
|
let errorName = 'UnknownError';
|
||||||
|
let supabaseErrorDetails: Record<string, any> | undefined;
|
||||||
|
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
errorMessage = error instanceof AppError
|
errorMessage = error instanceof AppError
|
||||||
@@ -41,6 +42,15 @@ export const handleError = (
|
|||||||
: error.message;
|
: error.message;
|
||||||
stack = error.stack;
|
stack = error.stack;
|
||||||
errorName = error.name;
|
errorName = error.name;
|
||||||
|
|
||||||
|
// Check if Error instance has attached Supabase metadata
|
||||||
|
if ((error as any).supabaseCode) {
|
||||||
|
supabaseErrorDetails = {
|
||||||
|
code: (error as any).supabaseCode,
|
||||||
|
details: (error as any).supabaseDetails,
|
||||||
|
hint: (error as any).supabaseHint
|
||||||
|
};
|
||||||
|
}
|
||||||
} else if (error && typeof error === 'object') {
|
} else if (error && typeof error === 'object') {
|
||||||
// Handle Supabase errors (plain objects with message/code/details)
|
// Handle Supabase errors (plain objects with message/code/details)
|
||||||
const supabaseError = error as {
|
const supabaseError = error as {
|
||||||
@@ -48,13 +58,24 @@ export const handleError = (
|
|||||||
code?: string;
|
code?: string;
|
||||||
details?: string;
|
details?: string;
|
||||||
hint?: string;
|
hint?: string;
|
||||||
|
stack?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
errorMessage = supabaseError.message || 'An unexpected error occurred';
|
errorMessage = supabaseError.message || 'An unexpected error occurred';
|
||||||
errorName = 'SupabaseError';
|
errorName = 'SupabaseError';
|
||||||
|
|
||||||
|
// Capture Supabase error details for metadata
|
||||||
|
supabaseErrorDetails = {
|
||||||
|
code: supabaseError.code,
|
||||||
|
details: supabaseError.details,
|
||||||
|
hint: supabaseError.hint
|
||||||
|
};
|
||||||
|
|
||||||
|
// Try to extract stack from object
|
||||||
|
if (supabaseError.stack && typeof supabaseError.stack === 'string') {
|
||||||
|
stack = supabaseError.stack;
|
||||||
|
} else if (supabaseError.code || supabaseError.details || supabaseError.hint) {
|
||||||
// Create synthetic stack trace for Supabase errors to aid debugging
|
// Create synthetic stack trace for Supabase errors to aid debugging
|
||||||
if (supabaseError.code || supabaseError.details || supabaseError.hint) {
|
|
||||||
const stackParts = [
|
const stackParts = [
|
||||||
`SupabaseError: ${errorMessage}`,
|
`SupabaseError: ${errorMessage}`,
|
||||||
supabaseError.code ? ` Code: ${supabaseError.code}` : null,
|
supabaseError.code ? ` Code: ${supabaseError.code}` : null,
|
||||||
@@ -68,8 +89,12 @@ export const handleError = (
|
|||||||
}
|
}
|
||||||
} else if (typeof error === 'string') {
|
} else if (typeof error === 'string') {
|
||||||
errorMessage = error;
|
errorMessage = error;
|
||||||
|
// Generate synthetic stack trace for string errors
|
||||||
|
stack = new Error().stack?.replace(/^Error\n/, `StringError: ${error}\n`);
|
||||||
} else {
|
} else {
|
||||||
errorMessage = 'An unexpected error occurred';
|
errorMessage = 'An unexpected error occurred';
|
||||||
|
// Generate synthetic stack trace for unknown error types
|
||||||
|
stack = new Error().stack?.replace(/^Error\n/, `UnknownError: ${String(error)}\n`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log to console/monitoring with enhanced debugging
|
// Log to console/monitoring with enhanced debugging
|
||||||
@@ -84,6 +109,7 @@ export const handleError = (
|
|||||||
errorConstructor: error?.constructor?.name,
|
errorConstructor: error?.constructor?.name,
|
||||||
hasStack: !!stack,
|
hasStack: !!stack,
|
||||||
isSyntheticStack: !!(error && typeof error === 'object' && !(error instanceof Error) && stack),
|
isSyntheticStack: !!(error && typeof error === 'object' && !(error instanceof Error) && stack),
|
||||||
|
supabaseError: supabaseErrorDetails,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Additional debug logging when stack is missing
|
// Additional debug logging when stack is missing
|
||||||
@@ -114,11 +140,13 @@ export const handleError = (
|
|||||||
p_error_stack: stack,
|
p_error_stack: stack,
|
||||||
p_user_agent: navigator.userAgent,
|
p_user_agent: navigator.userAgent,
|
||||||
p_breadcrumbs: JSON.stringify({
|
p_breadcrumbs: JSON.stringify({
|
||||||
...breadcrumbs,
|
breadcrumbs,
|
||||||
isRetry: context.metadata?.isRetry || false,
|
isRetry: context.metadata?.isRetry || false,
|
||||||
attempt: context.metadata?.attempt,
|
attempt: context.metadata?.attempt,
|
||||||
retriesExhausted: context.metadata?.retriesExhausted || false,
|
retriesExhausted: context.metadata?.retriesExhausted || false,
|
||||||
circuitBreakerState: context.metadata?.circuitState,
|
circuitBreakerState: context.metadata?.circuitState,
|
||||||
|
supabaseError: supabaseErrorDetails,
|
||||||
|
metadata: context.metadata
|
||||||
}),
|
}),
|
||||||
p_timezone: envContext.timezone,
|
p_timezone: envContext.timezone,
|
||||||
p_referrer: document.referrer || undefined,
|
p_referrer: document.referrer || undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user