Skip to content

Commit

Permalink
chore: Fix duplicate string (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Apr 24, 2024
1 parent 721a3d5 commit cd3bff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heatmaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TOOLBAR_ID = '__POSTHOG_TOOLBAR__'

function elementInToolbar(el: Element): boolean {
// NOTE: .closest is not supported in IE11 hence the operator check
return el.id === TOOLBAR_ID || !!el.closest?.('#__POSTHOG_TOOLBAR__')
return el.id === TOOLBAR_ID || !!el.closest?.('#' + TOOLBAR_ID)
}

export class Heatmaps {
Expand Down

0 comments on commit cd3bff7

Please sign in to comment.