Skip to content

Commit

Permalink
Add artificial delay to the sourcepoint rule to mitigate race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Feb 14, 2025
1 parent f78cf21 commit d2ff42a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cmps/sourcepoint-frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default class SourcePoint extends AutoConsentCMPBase {
}

async optOut() {
// FIXME: ideally we want to wait until the outer frame is ready, but it's tricky in cross-origin frames
await this.wait(500);

const logsConfig = this.autoconsent.config.logs;
if (this.ccpaPopup) {
// toggles with 2 buttons
Expand Down

0 comments on commit d2ff42a

Please sign in to comment.