Skip to content

Commit

Permalink
chore: uniquify differently (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Nov 15, 2023
1 parent b4f0f3a commit edb54ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,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 { uuidv7 } from './uuidv7'

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

Expand All @@ -25,7 +26,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 edb54ee

Please sign in to comment.