Skip to content

Commit

Permalink
Update analytics-service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Nov 16, 2023
1 parent 939a136 commit 8af2998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const getInitializedAnalytics = (
window as any
)[opts?.globalAnalyticsKey ?? 'analytics']
// we could probably skip this check and always return globalAnalytics, since they _should_ be set to the same thing at this point
// however, we _never_ want to call methods on an uninitialized analytics instance. Better to keep buffering.
// however, it is safer to keep buffering.
if ((globalAnalytics as any)?.initialized) {
return globalAnalytics!
}
Expand Down

0 comments on commit 8af2998

Please sign in to comment.