Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes ECENCY-NEXT-1064. The issue was that: Unsafe DOM manipulation in post enhancement utilities causes TypeError: b is null when target element is detached.

  • Added try...catch blocks to all content enhancer functions for graceful error handling. - Introduced checks for element connectivity (el.isConnected) before performing DOM manipulations. - Added checks for parent element existence (el.parentElement) before replaceChild operations. - Enhanced overall stability and error handling during content rendering.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 483092

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant