@posthog/rrweb-record 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13228,7 +13228,17 @@ function record(options = {}) {
13228
13228
  );
13229
13229
  }
13230
13230
  return () => {
13231
- handlers.forEach((h) => h());
13231
+ handlers.forEach((h) => {
13232
+ try {
13233
+ h();
13234
+ } catch (error) {
13235
+ const msg = String(error);
13236
+ const isCrossOriginFrameError = msg.includes("from accessing a cross-origin frame") && msg.includes("Blocked a frame with origin");
13237
+ if (!isCrossOriginFrameError) {
13238
+ throw error;
13239
+ }
13240
+ }
13241
+ });
13232
13242
  processedNodeManager.destroy();
13233
13243
  iframeManager.removeLoadListener();
13234
13244
  iframeManager.destroy();