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>(
8989 recordDOM = true ,
9090 recordCanvas = false ,
9191 recordCrossOriginIframes = false ,
92+ emitFromIframe = false ,
9293 recordAfter = options . recordAfter === 'DOMContentLoaded'
9394 ? options . recordAfter
9495 : 'load' ,
@@ -103,7 +104,7 @@ function record<T = eventWithTime>(
103104
104105 registerErrorHandler ( errorHandler ) ;
105106
106- const inEmittingFrame = recordCrossOriginIframes
107+ const inEmittingFrame = emitFromIframe ? true : recordCrossOriginIframes
107108 ? window . parent === window
108109 : true ;
109110
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export type recordOptions<T> = {
6565 recordDOM ?: boolean ;
6666 recordCanvas ?: boolean ;
6767 recordCrossOriginIframes ?: boolean ;
68+ emitFromIframe ?: boolean ;
6869 recordAfter ?: 'DOMContentLoaded' | 'load' ;
6970 userTriggeredOnInput ?: boolean ;
7071 collectFonts ?: boolean ;
You can’t perform that action at this time.
0 commit comments