File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ function record<T = eventWithTime>(
89
89
recordDOM = true ,
90
90
recordCanvas = false ,
91
91
recordCrossOriginIframes = false ,
92
+ emitFromIframe = false ,
92
93
recordAfter = options . recordAfter === 'DOMContentLoaded'
93
94
? options . recordAfter
94
95
: 'load' ,
@@ -103,9 +104,12 @@ function record<T = eventWithTime>(
103
104
104
105
registerErrorHandler ( errorHandler ) ;
105
106
106
- const inEmittingFrame = recordCrossOriginIframes
107
- ? window . parent === window
108
- : true ;
107
+ const inEmittingFrame = emitFromIframe
108
+ ? true
109
+ : recordCrossOriginIframes
110
+ ? window . parent === window
111
+ : true ;
112
+
109
113
110
114
let passEmitsToParent = false ;
111
115
if ( ! inEmittingFrame ) {
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export type recordOptions<T> = {
65
65
recordDOM ?: boolean ;
66
66
recordCanvas ?: boolean ;
67
67
recordCrossOriginIframes ?: boolean ;
68
+ emitFromIframe ?: boolean ;
68
69
recordAfter ?: 'DOMContentLoaded' | 'load' ;
69
70
userTriggeredOnInput ?: boolean ;
70
71
collectFonts ?: boolean ;
You can’t perform that action at this time.
0 commit comments