close #501 do not count attach iframe event in checkout
This commit is contained in:
@@ -30,6 +30,7 @@ export class IframeManager {
|
||||
removes: [],
|
||||
texts: [],
|
||||
attributes: [],
|
||||
isAttachIframe: true,
|
||||
});
|
||||
this.loadListener?.((iframeEl as unknown) as HTMLIFrameElement);
|
||||
}
|
||||
|
||||
@@ -157,6 +157,14 @@ function record<T = eventWithTime>(
|
||||
lastFullSnapshotEvent = e;
|
||||
incrementalSnapshotCount = 0;
|
||||
} else if (e.type === EventType.IncrementalSnapshot) {
|
||||
// attch iframe should be considered as full snapshot
|
||||
if (
|
||||
e.data.source === IncrementalSource.Mutation &&
|
||||
e.data.isAttachIframe
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
incrementalSnapshotCount++;
|
||||
const exceedCount =
|
||||
checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;
|
||||
|
||||
Reference in New Issue
Block a user