We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf618d commit e1c729cCopy full SHA for e1c729c
.changeset/silent-plants-perform.md
@@ -0,0 +1,5 @@
1
+---
2
+'rrweb': patch
3
4
+
5
+Return early for child same origin frames
packages/rrweb/src/record/index.ts
@@ -122,6 +122,11 @@ function record<T = eventWithTime>(
122
if (inEmittingFrame && !emit) {
123
throw new Error('emit function is required');
124
}
125
+ if (!inEmittingFrame && !passEmitsToParent) {
126
+ return () => {
127
+ /* no-op since in this case we don't need to record anything from this frame in particular */
128
+ };
129
+ }
130
// move departed options to new options
131
if (mousemoveWait !== undefined && sampling.mousemove === undefined) {
132
sampling.mousemove = mousemoveWait;
0 commit comments