Skip to content

Commit

Permalink
Merge branch 'fix/window-access' into fix/window-access-proper
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Nov 15, 2023
2 parents 202d192 + 4dc6e5f commit 0810ce6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
## 1.90.2 - 2023-11-15

- chore: uniquify differently (#897)
- correct CHANGELOG.md (#896)

## 1.90.1 - 2023-11-15

- fix: seek subdomain correctly (#888)
- fix: merge server permissions for payload capture (#892)

## 1.90.0 - 2023-11-15

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog-js",
"version": "1.90.1",
"version": "1.90.2",
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
"repository": "https://github.com/PostHog/posthog-js",
"author": "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { DISTINCT_ID, SESSION_ID, SESSION_RECORDING_IS_SAMPLED } from './constan
import { _isNull, _isUndefined } from './utils/type-utils'
import { logger } from './utils/logger'
import { window, document } from './utils/globals'
import { uuidv7 } from './uuidv7'

const Y1970 = 'Thu, 01 Jan 1970 00:00:00 GMT'

Expand All @@ -29,7 +30,7 @@ export function seekFirstNonPublicSubDomain(hostname: string, cookieJar = docume

const list = hostname.split('.')
let len = list.length
const key = 'dmn_chk_' + +new Date()
const key = 'dmn_chk_' + uuidv7()
const R = new RegExp('(^|;)\\s*' + key + '=1')

while (len--) {
Expand Down

0 comments on commit 0810ce6

Please sign in to comment.