Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 8, 2024
1 parent 9582823 commit 2f13c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/entrypoints/dead-clicks-autocapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ class LazyLoadedDeadClicksAutocapture implements LazyLoadedDeadClicksAutocapture
}

assignableWindow.__PosthogExtensions__ = assignableWindow.__PosthogExtensions__ || {}
assignableWindow.__PosthogExtensions__.initDeadClicksAutocapture = (ph) => new LazyLoadedDeadClicksAutocapture(ph)
assignableWindow.__PosthogExtensions__.initDeadClicksAutocapture = (ph, config?: DeadClicksAutoCaptureConfig) =>
new LazyLoadedDeadClicksAutocapture(ph, config)

export default LazyLoadedDeadClicksAutocapture
2 changes: 1 addition & 1 deletion src/utils/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface PostHogExtensions {
}
initDeadClicksAutocapture?: (
ph: PostHog,
config?: DeadClicksAutoCaptureConfig
config: DeadClicksAutoCaptureConfig
) => LazyLoadedDeadClicksAutocaptureInterface
}

Expand Down

0 comments on commit 2f13c82

Please sign in to comment.