@@ -3,7 +3,11 @@ import { genId, NodeType } from 'rrweb-snapshot';
33import type { CrossOriginIframeMessageEvent } from '../types' ;
44import CrossOriginIframeMirror from './cross-origin-iframe-mirror' ;
55import { EventType , IncrementalSource } from '@rrweb/types' ;
6- import type { eventWithTime , mutationCallBack } from '@rrweb/types' ;
6+ import type {
7+ eventWithTime ,
8+ eventWithoutTime ,
9+ mutationCallBack ,
10+ } from '@rrweb/types' ;
711import type { StylesheetManager } from './stylesheet-manager' ;
812
913export class IframeManager {
@@ -16,7 +20,7 @@ export class IframeManager {
1620 new WeakMap ( ) ;
1721 private mirror : Mirror ;
1822 private mutationCb : mutationCallBack ;
19- private wrappedEmit : ( e : eventWithTime , isCheckout ?: boolean ) => void ;
23+ private wrappedEmit : ( e : eventWithoutTime , isCheckout ?: boolean ) => void ;
2024 private loadListener ?: ( iframeEl : HTMLIFrameElement ) => unknown ;
2125 private stylesheetManager : StylesheetManager ;
2226 private recordCrossOriginIframes : boolean ;
@@ -26,7 +30,7 @@ export class IframeManager {
2630 mutationCb : mutationCallBack ;
2731 stylesheetManager : StylesheetManager ;
2832 recordCrossOriginIframes : boolean ;
29- wrappedEmit : ( e : eventWithTime , isCheckout ?: boolean ) => void ;
33+ wrappedEmit : ( e : eventWithoutTime , isCheckout ?: boolean ) => void ;
3034 } ) {
3135 this . mutationCb = options . mutationCb ;
3236 this . wrappedEmit = options . wrappedEmit ;
0 commit comments