Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PostHog/posthog-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 833d570e1831669f1e3cf116e007f63a83a1a187
Choose a base ref
..
head repository: PostHog/posthog-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0afe187b5a6c87ad7a241df11ed2c437e2e4d550
Choose a head ref
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/sessionid.ts
3 changes: 3 additions & 0 deletions src/sessionid.ts
Original file line number Diff line number Diff line change
@@ -37,6 +37,9 @@ export class SessionIdManager {
if (!instance.persistence) {
throw new Error('SessionIdManager requires a PostHogPersistence instance')
}
if (instance.config.__preview_experimental_cookieless_mode) {
throw new Error('SessionIdManager cannot be used with __preview_experimental_cookieless_mode')
}

this.config = instance.config
this.persistence = instance.persistence