Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix formatting.
  • Loading branch information
Code-Crash committed Feb 27, 2023
commit d4887fce49d75d6e800566d4c7ba7106c2d2f951
2 changes: 1 addition & 1 deletion .changeset/chatty-cherries-train.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"rrweb": patch
'rrweb': patch
---

Fix the statement which is getting changed by Microbundle
3 changes: 2 additions & 1 deletion packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ function record<T = eventWithTime>(
let passEmitsToParent = false;
if (!inEmittingFrame) {
try {
if (window.parent.document) { // throws if parent is cross-origin
if (window.parent.document) {
// throws if parent is cross-origin
passEmitsToParent = false; // if parent is same origin we collect iframe events from the parent
}
} catch (e) {
Expand Down