@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.
@@ -816,10 +816,13 @@ function inspectInlineEventHandlers() {
816
816
  });
817
817
  });
818
818
  }
819
- if (document.readyState === "complete" || document.readyState === "interactive") {
820
- inspectInlineEventHandlers();
821
- } else {
822
- document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
819
+ try {
820
+ if (document.readyState === "complete" || document.readyState === "interactive") {
821
+ inspectInlineEventHandlers();
822
+ } else {
823
+ document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
824
+ }
825
+ } catch (error) {
823
826
  }
824
827
  let _id = 1;
825
828
  const tagNameRegex = new RegExp("[^a-z0-9-_:]");