@@ -3,7 +3,11 @@ import { genId, NodeType } from 'rrweb-snapshot';
3
3
import type { CrossOriginIframeMessageEvent } from '../types' ;
4
4
import CrossOriginIframeMirror from './cross-origin-iframe-mirror' ;
5
5
import { 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' ;
7
11
import type { StylesheetManager } from './stylesheet-manager' ;
8
12
9
13
export class IframeManager {
@@ -16,7 +20,7 @@ export class IframeManager {
16
20
new WeakMap ( ) ;
17
21
private mirror : Mirror ;
18
22
private mutationCb : mutationCallBack ;
19
- private wrappedEmit : ( e : eventWithTime , isCheckout ?: boolean ) => void ;
23
+ private wrappedEmit : ( e : eventWithoutTime , isCheckout ?: boolean ) => void ;
20
24
private loadListener ?: ( iframeEl : HTMLIFrameElement ) => unknown ;
21
25
private stylesheetManager : StylesheetManager ;
22
26
private recordCrossOriginIframes : boolean ;
@@ -26,7 +30,7 @@ export class IframeManager {
26
30
mutationCb : mutationCallBack ;
27
31
stylesheetManager : StylesheetManager ;
28
32
recordCrossOriginIframes : boolean ;
29
- wrappedEmit : ( e : eventWithTime , isCheckout ?: boolean ) => void ;
33
+ wrappedEmit : ( e : eventWithoutTime , isCheckout ?: boolean ) => void ;
30
34
} ) {
31
35
this . mutationCb = options . mutationCb ;
32
36
this . wrappedEmit = options . wrappedEmit ;
0 commit comments