feat: improve how disabled works for the SDKS (to improve consent management)

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-02 11:00:20 +01:00
parent 8c377c2066
commit 043730444a
5 changed files with 340 additions and 17 deletions

View File

@@ -106,6 +106,8 @@ export class OpenPanel extends OpenPanelBase {
this.loadReplayModule().then((mod) => {
if (!mod) return;
mod.startReplayRecorder(this.options.sessionReplay!, (chunk) => {
// Replay chunks go through send() and are queued when disabled or waitForProfile
// until ready() is called (base SDK also queues replay until sessionId is set).
this.send({
type: 'replay',
payload: {