Skip to content

Commit

Permalink
Merge pull request #769 from microsoft/muleithy/cookie-page-fix
Browse files Browse the repository at this point in the history
Fix page number cookie persistence
  • Loading branch information
nairmanu authored Feb 18, 2025
2 parents f029f39 + 3f879c5 commit b43c4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clarity-js/src/data/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function callback(): void {
}

export function save(): void {
if (!data) return;
if (!data || !config.track) return;
let ts = Math.round(Date.now());
let upload = config.upload && typeof config.upload === Constant.String ? (config.upload as string).replace(Constant.HTTPS, Constant.Empty) : Constant.Empty;
let upgrade = config.lean ? BooleanFlag.False : BooleanFlag.True;
Expand Down

0 comments on commit b43c4a2

Please sign in to comment.