Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Aug 4, 2023
1 parent 0126599 commit 05a755b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/posthog-core.identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jest.mock('../decide')

given('lib', () => {
const posthog = new PostHog()
posthog._init('testtoken', given.config, 'testhog')
posthog.init('testtoken', given.config)
return Object.assign(posthog, given.overrides)
})

Expand Down
2 changes: 1 addition & 1 deletion src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ export class PostHog {
properties['$window_id'] = windowId
}

if (this.webPerformance?.isEnabled) {
if (this.webPerformance?.isEnabled()) {
if (event_name === '$pageview') {
this.pageViewIdManager.onPageview()
}
Expand Down

0 comments on commit 05a755b

Please sign in to comment.