@appsurify-testmap/rrweb-snapshot 2.1.2-alpha.1 → 2.1.2-alpha.2

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.
@@ -880,10 +880,13 @@ function inspectInlineEventHandlers() {
880
880
  });
881
881
  });
882
882
  }
883
- if (document.readyState === "complete" || document.readyState === "interactive") {
884
- inspectInlineEventHandlers();
885
- } else {
886
- document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
883
+ try {
884
+ if (document.readyState === "complete" || document.readyState === "interactive") {
885
+ inspectInlineEventHandlers();
886
+ } else {
887
+ document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
888
+ }
889
+ } catch (error) {
887
890
  }
888
891
  let _id = 1;
889
892
  const tagNameRegex = new RegExp("[^a-z0-9-_:]");