Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set sandbox iframe styles directly through JavaScript (#449)
This commit sets style properties on the sandbox directly using the `style[property] = value` syntax. This method is allowed by CSP configurations. Previously, it was calling `sandbox.setAttribute('style', '...')`, which is often restricted because it involves setting inline styles via an attribute.
- Loading branch information
9a5d1ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
partytown – ./
partytown-git-main-builder-io.vercel.app
partytown.builder.io
partytown.vercel.app
partytown-builder-io.vercel.app