Skip to content

Commit

Permalink
fix: exclude push from auto-generated snippet (#24798)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Sep 5, 2024
1 parent 277fb2e commit 71df845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/JSSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function snippetFunctions(): string {
if (
typeof posthogPrototype[key] === 'function' &&
!key.startsWith('_') &&
!['constructor', 'toString'].includes(key)
!['constructor', 'toString', 'push'].includes(key)
) {
methods.push(key)
}
Expand Down

0 comments on commit 71df845

Please sign in to comment.