Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow plugins from a parent document to be used in an iframe #12208

Merged
merged 3 commits into from Oct 17, 2023

Conversation

2hu12
Copy link
Contributor

@2hu12 2hu12 commented Oct 15, 2023

Fix #11899, to make isPlainObject util could work across iframe.

Another example that uses the cdn.tailwindcss.com in iframe, we have to use Object.create(null) as workaround.

@thecrypticace thecrypticace changed the title Fix cross iframe plain object check Allow plugins from a parent document to be used in an iframe Oct 17, 2023
@thecrypticace thecrypticace merged commit a1bcfa2 into tailwindlabs:master Oct 17, 2023
9 of 10 checks passed
@thecrypticace
Copy link
Contributor

Thanks — this was a much simpler fix for that problem than I expected. It'll be available in out insiders build in probably about 15 minutes or so:

npm install tailwindcss@insiders

@2hu12 2hu12 deleted the patch-2 branch October 17, 2023 14:45
thecrypticace added a commit that referenced this pull request Oct 23, 2023
* Fix cross iframe isPlainObject check

* Update changelog

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
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.

TailwindCDN breaks when loading a custom plugin within an iframe
2 participants