File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
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,7 +104,7 @@ function record<T = eventWithTime>(
103
104
104
105
registerErrorHandler ( errorHandler ) ;
105
106
106
- const inEmittingFrame = recordCrossOriginIframes
107
+ const inEmittingFrame = emitFromIframe ? true : recordCrossOriginIframes
107
108
? window . parent === window
108
109
: true ;
109
110
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