Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes ECENCY-NEXT-Z4F. The issue was that: iOS Safari detaches DOM elements, causing s.parentNode to be null, which minified code fails to handle, leading to TypeError.

  • Added checks for image element connectivity (isConnected) and parent existence before DOM manipulation in the image enhancement logic.
  • Wrapped image processing in try...catch blocks to prevent errors and log warnings if elements become disconnected or lose their parent during rendering.
  • Ensures more stable image enhancement, especially in dynamic rendering environments.
  • Bumped package version to 1.3.8.

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

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