Skip to content

Commit

Permalink
fix: Typescript compilation of survey types
Browse files Browse the repository at this point in the history
Fixes #807 (comment) again
  • Loading branch information
neilkakkar authored Oct 6, 2023
1 parent 7e167a5 commit 8b2197e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posthog-surveys.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PostHog } from './posthog-core'
import { SURVEYS } from './constants'
import { _isUrlMatchingRegex } from './utils'
import { SurveyCallback, SurveyUrlMatchType } from 'posthog-surveys-types'
import { SurveyCallback, SurveyUrlMatchType } from './posthog-surveys-types'

export const surveyUrlValidationMap: Record<SurveyUrlMatchType, (conditionsUrl: string) => boolean> = {
icontains: (conditionsUrl) => window.location.href.toLowerCase().indexOf(conditionsUrl.toLowerCase()) > -1,
Expand Down

0 comments on commit 8b2197e

Please sign in to comment.